c:windowssxs folder is growing large

You should never delete the files inside this folder manually;

instead, if you are running service pack 1 of Windows Server 2008 R2 or Windows 7 you can use this command to cleanup the backup files of the service pack installation

You can also check this website from Microsoft with other utilities, f.eks. disc cleanup: https://technet.microsoft.com/en-us/library/dn251565.aspx

DISM /online /Cleanup-Image /SpSuperseded


Free space on your Windows Deduplicated volume

In Windows 2012 R2 you can enable deduplication on a volume. This can save tons of space and I use lit a lot when I save f.eks Veeam backup files. You can easy get a saving of 50-70% of your avaiable space.

An «issue» though; if you want to delete some files and get your space back, you will have to wait for a week… ( https://technet.microsoft.com/en-us/library/hh831434.aspx ) Look at the Garbage collection part…

You can alse see this by typing the following in powershell:

Get-DedupSchedule

Here yu can see the garbagecollection is set to run weekly at Saturday 02:45

There is a workaround if you want to get your space back sooner; run this powershellscript where D: is the letter of yuour deduplicated volume:

Start-DedupJob -Type GarbageCollection -Priority High -Volume D:

You can even schedule this job to run f.ex once a day if you want to get your space back at a daily level:

Set-DedupSchedule –Name "FreeSpace" –Type GarbageCollection –Start hh:ss –DurationHours 5 –Days Mon,Tues,Wed,Thurs,Fri,Sat,Sun –Priority High

Replace hh:ss with the time you want to perform the job, also remove unwanted days if not needed.

Source: http://blog.cloud-client.info/?p=1452

Host not responding in VMM 2012 SP1 with 2012 hyper-v hosts

I noticed this weekend that one host in a Windows 2012 Failover Cluster showed «host not responding» in the statuswindo in VMM 2012. The VMs running on the host worked just fine and we could managed the VMs through both Hyper-V manager and Failover Cluster msc.

The event viewer on the host showed error 3001 very often (every half min. or even more often).

This error has to do something with WMI so I guess this had to do with the Performance Counter not giving the info to VMM.

I came over a nice blog (please send me the link again for reference!) which showed me how to reset the performance counter

open an eleveted cmd.exe promot and go to c:windowssyswow64

There you can run the following command (you must have navigated to the c:windowssyswo64 directory or else you will get an error with error code 2 saying you can’t restore from a system restore backup)

lodctr /R

After that you must run the following command to sync the information, important!

winmgmt.exe /RESYNCPERF

IIS services fail to start: «Windows could not start the Windows Process Activation Service – Error 6801: Transaction support within the specified resource manager is not started or was shut down due to an error» when WAS service is started

After a restore from Veeam to a Storefront 2.0 server I could not get the W3svc to start.

You may see that IIS related services fail to start and receive «Windows could not start the Windows Process Activation Service – Error 6801: Transaction support within the specified resource manager is not started or was shut down due to an error» error message when you try to start the WAS (Windows Process Activation Service) service. This issue may occur if the file system transaction log is corrupted somehow. In this case run the following command in the command prompt:

fsutil resource setautoreset true c:

PS: This assumes that the system drive is C:

Reboot is required after running the command.

Applies To:

Windows Server 2008
Windows Server 2008 R2

 

Source: http://blogs.msdn.com/b/amb/archive/2011/06/21/iis-service-startup-problem-error-6801-transaction-support-within-the-specified-resource-manager-is-not-started-or-was-shut-down-due-to-an-error.aspx

rds 2012 terminalserver remote desktop grace period regedit fix

This will fix the bug with RDS 2012 where it says no license server can be reached even everything is setup correctly. The issues occur after a few months and can also return occasionally.

Complete source:

No remote Desktop Licence Server availible on RD Session Host server 2012

A fully functional and activated 2012 Remote Desktop Session Host server displayed the following message:

error no licence

This was a simple setup on one server with the: connection broker, Session Host and Licensing server with 2012 CAL’s installed.

Even though the licensing seems to be configured correctly, in server manager:

ServerManagerLicencingOK

and powershell:

Powershell_setting

Licensing diagnostics:

Licdiag

everywhere you look, everything seems to be OK. But the license manager shows something odd:

NoLicensesUsed

No licenses are being used? This server was used since late 2012. Some interesting things could also be found in the event logs, the following events appear:

EventID: 1130
Source: TerminalServices-RemoteConnectionManager

The Remote Desktop Session Host server does not have a Remote Desktop license server specified. To specify a license server for the Remote Desktop Session Host server, use the Remote Desktop Session Host Configuration tool.

event1130

and:

EventID: 1128
Source: TerminalServices-RemoteConnectionManager

The RD Licensing grace period has expired and the service has not registered with a license server with installed licenses. A RD Licensing server is required for continuous operation. A Remote Desktop Session Host server can operate without a license server for 120 days after initial start up.

1128eventid

The solution was to delete the REG_BINARY in

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal ServerRCMGracePeriod

Only leaving the default.

regkey

Note: you must take ownership and give admin users full control to be able to delete this key.

After a reboot the server should be working again, licenses are now being used:
Licencemanager

Although everything seemed to be ok and configured correctly with valid licenses, it seems that the setup was still in a 180 day grace period, even though it was correctly configured.
A possible bug in RDS 2012?

how to get out of a safe mode loop

i had a problem getting out of a safe mode loop with sbs 2011 after settings minimal safeboot in msconfig.

To get out of trouble; fire up a 2008 r2 iso, go to repair computer and the cmd-console.

type the following and restart the computer:

bcdedit /deletevalue {default} safeboot

Pending reboot during connecting computer to SBS 2011 Essentials

Just got a  shiny new IBM Carbon computer and was trying to join it to the domain throught the connect computer wizard on their SBS 2011 Essentials. It stopped right away with «A pemding reboot is preventing you from installting the connector software». Ok, I will just have to reboot. So I did. But the same error happened again. and again. I checked the classic PendingFileRenameOperations in the registry and I found some depending reboots there. But each time i deleted this it just came back! So, what was causing this..? Well, the file it referred to was this: wpro_41_2001woem.tmp

After a few seconds with my friend google it seems to be related with the WinPap professional software which is used to capture client/network traffic. But I couldn’t find this software on the computer but after some googling it seems that this file is a part of the Intel Smart Connect software. After deleting this software, and a reboot, the PendingFileRenameOperations was gone and the computer could join the domain just fine.

Here is also a little vb-script which you can save to a .vbs file and run with «wscript.exe nameoffile.vbs» in an elevated cmd.exe which will show you files which have a lock during a pending reboot.

‘———————————————————————
‘Name: CheckPendingFileRenameOperations
‘Programmer: Tom Mills/Microsoft Corp.
‘Date: 8/14/2008
‘Purpose: Checks registry key for pending file rename operations
‘Notes: None
‘———————————————————————

CONST HKEY_LOCAL_MACHINE = &H80000002

strComputer = «.»
strFileOps = «»

Set objReg=GetObject(«winmgmts:{impersonationLevel=impersonate}!\»&_
strComputer & «rootdefault:StdRegProv»)

strKeyPath = «SYSTEMCurrentControlSetControlSession Manager»

strValueName = «PendingFileRenameOperations»

Return = objReg.GetMultiStringValue(HKEY_LOCAL_MACHINE,strKeyPath,_
strValueName,arrValues)

If (Return = 0) And (Err.Number = 0) Then
For Each strValue In arrValues
strFileOps = strFileOps & chr(13) & strValue
Next

WScript.Echo «Pending File Rename Operations Found: » & strFileOps

Else
If Err.Number = 0 Then
Wscript.Echo «No Pending File Operations Found»
Else
Wscript.Echo «Check Pending File Operations failed. Error = » & Err.Number
End If
End If

 

SBS 2011 backup only use half of the available space on usb drive

I have seen this on a few installations with Windows Server SBS 2011 if the backup is configured through the SBS console backup wizard. Which is also the correct way to setup backup in SBS 2011. If you not have virtualized it, then you would of course use Veeam, right..?

As you can see from the screenshot the disc is just using half of the drive. If I run 10 backup it will still just hold 73 restore points back in time. The problems is realted to the shadow copies. Type this to see if you have the same problem:

To check if you have the same problem I have seen type this command

vssadmin list shadowstorage

and see if you can see the UNBOUNDED. If you got that on your usb-drive, thats your problem.

To release this UNBOUNDED space, do the following:

You should now see that you have released the space if you tyoe: vssadmin list shadowstorage

Source: http://social.technet.microsoft.com/Forums/windowsserver/en-US/5a024233-518e-45b2-aaf8-cc748c0012dd/why-wont-windows-server-backup-use-up-the-rest-of-the-space

Hidden default quota on redirected folders

img_5329fcc03191aMy colleague, Bjørn Magne Vik, gave me a good tip today. A customer with a  .pst file located on a redirected folder got some issues with the Outlook with a lot of errors. Neither new profile, repair of the .pst file would work. The error message was 0x80040116 (Outlook pst crash error)  + 0x80070718.

The problem was that the the local synchronized folder get their own quota on the local machine. This could be very problematic if you are not aware of this. You can easily change this at Control Panel and Sync center.  Luckily this can be controlled by group policy by the administrator too..

For more information regarding the settings for the policy, take a look at this site:

http://technet.microsoft.com/en-us/library/cc759721%28v=ws.10%29.aspx

Thanks to Bjorn for sharing this timesaver of a tip!

Blogg på WordPress.com.

opp ↑