Management

Subscribe to Blog via Email

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

Join 788 other subscribers

Social

  • LinkedIn
  • RSS Feed for Posts
  • Twitter
  • StumbleUpon

[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]

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.

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]

HOW TO: Create a software list in powershell on server 2008 (R2) + 2012 (R2)

This week I had to compare software on multiple Remote Desktop Servers.

To do this quicly I wrote this little Powershell script, to create a CSV file of the software, in order to compare the lists.

 

You can create a list by means of:

Get-WmiObject -class win32_product

 

Creating

Read more… HOW TO: Create a software list in powershell on server 2008 (R2) + 2012 (R2)

How to : Start Windows Powershell ISE as an administrator

Off course you can start a program as an administrator bij right clicking the program, and select ‘Run as administrator’.

But sometimes this is not possible, for example bij using a script.

In this case you can use the Start-Process command in Powershell ( This does not work in cmd

Read more… How to : Start Windows Powershell ISE as an administrator

Find the Operating System start time / boot time [Solved]

Execute this command if you want to know the start time, of the workstation/server

Tested on :

Windows 7 + 8

Windows Server 2008 R2 + Server 2012

Get-EventLog -Log System | Where { $_.Source -eq “Microsoft-Windows-Kernel-General” -AND $_.EventID -eq 12 } | Select TimeGenerated