If you use RoboCopy in your PowerShell script, you might want to know if everything went well. Besides the log file, you can check the Exit Code as well.
If you need the size of an folder in MB’s. You can use below script to obtain this information. The $FolderSize variable will return the folder size in the following format: 77,84 MB
What if you want to execute Exchange commands/Cmdlets from a script? Or you just hate the ugly Exchange management shell (like me) and want to use the regular (blue) PowerShell window?
What if you want to check for open ports on a server, but you don’t have telnet installed on your management server? Yes! Use PowerShell! But how?
Ensure Task Manager is closed. Launch the Command Prompt using the “Run as Administrator” option. Enter the following at the Command Prompt:
Because I have a lab environment at home, I turn off my server when I’m ready playing. To turn on my server again, I need to open my browser, go to the iDrac page, logon, go to the Power Management page and click on the right button…
If you want to bypass the configuration of the RES Workspace Manager 2012 agent on a client (which is given by DHCP). Please read the following instruction: To set a specific Agent to ignore the DHCP information, set the registry key: HKEY_Local_Machine\Software\RES\Workspace Manager\DisableDHCP in the registry of the Agent, with value “True”, “yes” or “1”. […]
Some registry keys are always hard to find in the huge and mysterious registry… Therefore I decided to write them down and share them with you. If you have any “must have” suggestions. Please send them to me! The famous “User Profile List”. If you need to delete a user profile, don’t forget to delete […]
I use PowerShell a lot. Sometimes to automate something with a script but often just to get some data. Export my results to a csv (Export-CSV) for example not always gets the result you want. Create your own table and you are more in control export it to a XML file and your ready to […]