background preloader

Misc.

Facebook Twitter

After partition extend file system displays wrong disk size in WindowsThe virtual world of Marc O Polo. Recently I was working on a VM that has some free space problems on the Exchange partition of a Windows 2008 SBS server.

After partition extend file system displays wrong disk size in WindowsThe virtual world of Marc O Polo

So I extend the hard disk in VMware and Windows. That’s easy…. I extended the Hard disk size in VMware. Then I extended the Disk size in the Disk Management tool. All without any problems. Screenshot of the hard disk size in VMware. Screenshot of the disk size in Storage Manager. Screenshot of the disk size in Windows Explorer. The fix is simple, open an elevated command prompt and start DISKPART List all volumes of the server. DISKPART> list volume Select the volume that has the wrong file system size. x is the ID of the effected volume. DISKPART> select volume [x] Using Format Commands to Change Output View. Updated: October 17, 2013 Applies To: Windows PowerShell 2.0, Windows PowerShell 3.0, Windows PowerShell 4.0, Windows PowerShell 5.0 Windows PowerShell has a set of cmdlets that allow you to control which properties are displayed for particular objects.

Using Format Commands to Change Output View

The names of all the cmdlets begin with the verb Format. They let you select one or more properties to show. The Format cmdlets are Format-Wide, Format-List, Format-Table, and Format-Custom. Windows - How can I check a system's current NTP configuration? RDS 2012: Dealing With Corrupt User Profile Disks, And Other Profile Related Logon Issues. If you ever allow the system (C:) drive to fill up on a Windows Server 2012 running Remote Desktop Services (RDS) that is also utilizing “User Profile Disks” then get ready for a headache.

RDS 2012: Dealing With Corrupt User Profile Disks, And Other Profile Related Logon Issues

Okay, this particular headache isn’t THAT painful and can be fixed relatively quickly. Are you getting this message when trying to login to your RDS 2012 host? The User Profile Service service failed the sign-in.User profile cannot be loaded. Using Format Commands to Change Output View. How to Delete Files Older than X Days on Windows. Automating the Process of Deleting Old Log Files. Many services and programs out there produce log files as an audit trail for everything they are doing, however few have a function which removes these files as they outlive their usefulness.

Automating the Process of Deleting Old Log Files

As a result, these log files sit on your system eating up space (sometimes more than you know) and cluttering directories for those times you need to access them. So if you don’t need these files, why keep them? We are going to show you how to easily remove these old log files to keep you system nice and tidy. Of course, while the we are covering below are immediately useful for managing log files, you can also apply the same techniques to any other type of “expiring” file (such as backups). Remove Files Based on Last Modified Date. Using the Set-ExecutionPolicy Cmdlet. Changing the Windows PowerShell Script Execution Policy.

Using the Set-ExecutionPolicy Cmdlet

Powershell is not digitally signed: Set-ExecutionPolicy - Concurrency, Inc. If you have tried to run a PowerShell script that isn’t signed, you’ve likely run into the security error “File … cannot be loaded.

Powershell is not digitally signed: Set-ExecutionPolicy - Concurrency, Inc.

The file is not digitally signed. The script will not be executed on the system. “ This means that the script is not trusted to be run on your system. If you’d like to sign the script, here is a walkthrough: Alternatively, you can change your signing policy. This tends to be the practice most of the time… ;) Windows 8 – Powershell Script Cannot be Loaded Because Running Scripts is Disabled. I just stumbled upon an interesting Technet blog for Windows scripts here.

Windows 8 – Powershell Script Cannot be Loaded Because Running Scripts is Disabled

Attempting to run a Powershell script however generated the following error: Import-module : File C:\Scripts\CreateWindowsTile\CreateWindowsTile.psm1 cannot be loaded because running scripts is disabled on this system. What Are Named Printers in Dynamics GP? - Dynamics GP Insights. Named printers, a feature of Dynamics GP, give users the ability to specify printers for reports and processes—payables checks could be set to use a specific printer always loaded with check stock, while posting journals could be set up to use a different laser printer with blank sheets.

What Are Named Printers in Dynamics GP? - Dynamics GP Insights

The Dynamics GP Blogster: Default Printer not 'sticking' when running Microsoft Dynamics GP in Terminal Services RemoteApp. A bit of theory...

The Dynamics GP Blogster: Default Printer not 'sticking' when running Microsoft Dynamics GP in Terminal Services RemoteApp

RemoteApp programs are programs that are accessed remotely through Terminal Services and appear as if they are running on the end user's local computer. Users can run RemoteApp programs side by side with their local programs. A user can minimize, maximize, and resize the program window, and can easily start multiple programs at the same time. If a user is running more than one RemoteApp program on the same terminal server, the RemoteApp programs will share the same Terminal Services session. The following Microsoft TechNet article explains in more detail: Background Microsoft Dynamics GP (versions 10.0 and 2010), is currently supported in a Terminal Server RemoteApp environment, but a number of my clients and forum users have reported in numerous occasions that the Default Printer settings are not 'sticking' or simply saving when loging out of the application (which also closes the RemoteApp session) and returning to it. The Solution. Net use.

Connects a computer to or disconnects a computer from a shared resource, or displays information about computer connections.

Net use

The command also controls persistent net connections. Used without parameters, net use retrieves a list of network connections. Syntax net use [/persistent:{yes | no}] Parameters. PsExec. Introduction Utilities like Telnet and remote control programs like Symantec's PC Anywhere let you execute programs on remote systems, but they can be a pain to set up and require that you install client software on the remote systems that you wish to access. PsExec is a light-weight telnet-replacement that lets you execute processes on other systems, complete with full interactivity for console applications, without having to manually install client software. PsExec's most powerful uses include launching interactive command-prompts on remote systems and remote-enabling tools like IpConfig that otherwise do not have the ability to show information about remote systems. Note: some anti-virus scanners report that one or more of the tools are infected with a "remote admin" virus.

None of the PsTools contain viruses, but they have been used by viruses, which is why they trigger virus notifications. Installation. Net use. How to Back Up and Restore NTFS and Share Permissions. This topic was originally posted to the AskDS blog and has been added to the wiki to allow for community editing. From time to time we are asked how to backup and restore NTFS file system permissions as well as network share permissions. KB article 125996 talks about the network share piece of it, but it does not talk about NTFS permissions. One thing that has made the NTFS permissions piece of this simpler is the Icacls tool. . , Xcacls , and Xcacls.vbs.