Set Computer Name using PowerShell
Yesterday I faced a problem in which I need to change the computer name using PowerShell. First I was looking for some cmdlet which can do this job for me…
Yesterday I faced a problem in which I need to change the computer name using PowerShell. First I was looking for some cmdlet which can do this job for me…
Let's assume your script wants to share status information via a balloon message in the system tray area. Here is a sample: [system.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null $balloon = New-Object System.Windows.Forms.NotifyIcon $path…
For exporting users thumbnail photo from AD to jpg for all users you can use script below: Get-ADUser -Filter * -Properties thumbnailphoto | where {$_.thumbnailphoto} | foreach {$_.thumbnailphoto | Set-Content…
If you want to ping a device trough PowerShell then you can use the script below: $Hostname = "HOSTNAME OR IP" $Ping = New-Object System.Net.NetworkInformation.Ping $Ping.Send($Hostname) -Pouyan
If you get the following error when you try to connect to your WinRM client, try the command below: Connecting to remote server failed with the following error message: The…