Management

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 786 other subscribers

Social

  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

[Solved] : Start Powershell (ISE) as an Administrator

You can start Powershell and Powershell-ISE as an Administrator, from within a script by starting the script with this rule:

[Solved] Windows 10 : Disable Windows 10 autoupgrade

This script disables the automatic upgrade to Windows 10, by placing 2 regkeys if not set already.

Move files to sub folders based upon year and month LastWriteTime [Solved]

Very often I hear my colleagues say that zipping, deleting or archiving a folder takes to many time, and resources of the server they are working on.

This is due to the large amount of files in these folders.

 

In order to help then I write this simple script,

Read more… Move files to sub folders based upon year and month LastWriteTime [Solved]

How to connect to a domain-joined Exchange server from a stand-alone PC [Solved]

Special thanks to my colleague Eric Snijders for his contribution!

 

Be Aware:

This is not the best practice!

We have done this in order to decommission the current mail server!

 

This week I encountered some troubles connecting from my

Read more… How to connect to a domain-joined Exchange server from a stand-alone PC [Solved]

Working with Powershell and modules. [Solved]

For some time now I worked with Functions in Powershell, but wanted to go to the next level, working with modules.

Creating modules isn’t rocket science, but working with modules the right way is something completely different.

At first is I placed my modules at C:\Windows\system32\WindowsPowerShell\v1.0\Modules\

But later I found

Read more… Working with Powershell and modules. [Solved]

Extend your Powershell ISE with tons of extra features => use ISESteroids 2.0 !

Have you always thought Powershell ISE is the best there is?

Then check out Powershell ISE !

Powershell ISE give you tons of extra features in Powershell ISE !

Download ISESteroids from : http://www.powertheshell.com/isesteroids2/download/

First check your Powershell version

$PSVersionTable.PSVersion.Major

In PowerShell 4 you need to download

Read more… Extend your Powershell ISE with tons of extra features => use ISESteroids 2.0 !

Start powershell with the same settings everytime.

Do you need to add the same command’s in powershell everytime you start powershell?

This can be done automatically !

 

I always start powershell with start-stranscript and change the default location to C:\Scripts.

You can execute this automatically :

 

First check wetter there is a Profile in use

Read more… Start powershell with the same settings everytime.

Windows 8 : Change Windows lock screen time out [Solved]

In Windows 8 there is a standard option to change the display of the lock screen, but this option is hidden by default.

Here is how to change this setting :

There is no way to change the default time out of the Lock screen of 1 minute in

Read more… Windows 8 : Change Windows lock screen time out [Solved]

Script to create a Windows backup using a VHD file.

Updated : 10-31-2014 => Added Version 4.0

 

This scripts can create a windows backup to a VHD file, on any location in your network.

The only thing needed is setting the correct variables in the xml file.

The script is generating a log file in the backup location, these

Read more… Script to create a Windows backup using a VHD file.

Win 7-8-2008-2012 : Get-EventLog : The network path was not found. At SomePowershellScript.ps1:1 char:1 [Solved]

This week I had to do some powershell scripting on different servers.

There was one server who reacted not in the same order as the other servers.

 

For example:

Executing the command :

get-eventlog -computername ServerName –list

Returns with the error :

Get-EventLog : The network path was

Read more… Win 7-8-2008-2012 : Get-EventLog : The network path was not found. At SomePowershellScript.ps1:1 char:1 [Solved]