PowerCLI :: VMware annotation Note to Multiple VMs.

Now, I am posed with another requirement, I need to update few non-critical VMs to be taken out of backup schedule. My backup admin has a query based backup policy, where he is able to filter out VM server, which got 'no-backup' annotation note. Now we need to add 100s of server with this note. … Continue reading PowerCLI :: VMware annotation Note to Multiple VMs.

Copy files with certain extension from on path to to another with folder structure ( File and folder exclusions)

Another unique requirement from one of my friend. He was trying move some build files as part of his deployment, process include stopping services and moving files between the folders and backup the old folders etc. He tried automating many of the process, requested my help with part of one segment that require copying the … Continue reading Copy files with certain extension from on path to to another with folder structure ( File and folder exclusions)

Find and Logoff Disconnected users :: Powershell Script

One of my recently wondered with frequent account lockouts of users accounts due to disconnected users! whose password expired or password changed after last logon time.. You can use 'quser /server:servername  | ? { $_ -match "Disc" }' to find the disconnected users You may use 'logoff #SessionId /server:servername' to log them off from the servers Below … Continue reading Find and Logoff Disconnected users :: Powershell Script

Powershell Script to Send Password expiry notification to users

Folks I am looking for a good script to send a password change notification users whose password is expiring in less than 15 days time. Hope somebody can use below script. #************************************************************************** # # PowerShell script to gather Password expiry date for all users and --- # send e-mail notification to user with Password expiry … Continue reading Powershell Script to Send Password expiry notification to users

Enable PS-remoting on remote servers

Folks, I had to enable ps-remoting on multiple Windows 2008 R2 servers recently, I used PSexec to enable this remotely since I was clueless on the options and found no articles found else where. Input computers in Servers.txt +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # This portion will convert your passwor to plain text function ConvertFrom-SecureToPlain { param( [Parameter(Mandatory=$true)][System.Security.SecureString] $SecurePassword) # … Continue reading Enable PS-remoting on remote servers