backing up event logs, then send to a choice of two central servers, based on...
Hello, here goes. I need a PS script to backup event logs of windows 2008R2 servers and Win7 clients. Once backed up, based on which site the host is in, send to the central server in that site. If...
View ArticleRename multiple files based on their content
I am very much novice on powershell but I am trying to find(learn) a solution in powershell to rename several text files based on their content:For eg:I have a file with content in first line something...
View ArticleScript for NAV 3-tier troubleshooting (PowerShell)
This PowerShell script is designed to help troubleshooting Dynamics NAV 3-tier installations by extracting the information that is typically used, rather than looking around in Active Directory to find...
View ArticleWindows Server 2012 Users Should Not Uninstall .NET Framework
Microsoft this week warned Windows Server 2012 users against uninstalling older .NET Framework versions.For organizations upgrading their servers, removing the old .NET Framework might seem like the...
View ArticleIf Statement to Return No User Logged in on Remote Computer
I've been struggling with this one and need some help. The Get-WmiObject command below returns the DOMAIN\Logged_In_User on a remote computer. I would like an "If Statement" to return "No Logged User"...
View ArticlePowershell Goodies
If you haven’t seen some of the other blog post, or the Microsoft Powershell Blog, Microsoft recently release Script Browser for Powershell ISE. This little addin allows you to quickly search and...
View ArticleExtracting Specific String that follows known text
I have a string of text in a file that looks like this (without the extra row...
View Articlecopy-item fails
$grab = get-childitem "C:\Temp" -recurse | where {$_.extension -eq ".txt"} | % { Write-Host $_.FullName } foreach ($item in $grab) {Copy-Item $item -destination "c:\Find"} When I run that above...
View ArticleFormating Word Document
I have a simple script that adds a title, date and sample table. I can align the title and date but once I apply a style to the table I would like to center the table. I have tried to find the...
View ArticleUnable to update to Powershell 4
I have windows 8 pro but I am not able to update. Why?My OS is in Spanish Language and I downloadedWindows8-RT-KB2799888-x64.msu (recommended) 17.5 MBand the result is:the update does not apply to...
View ArticleHome drive and looking for blanks
Back again, with a change of direction. Another project has befallen me. Id rather take a ring to Mordor to be honest. LDAP is useful but so unreadable so again i look to powershell.from many thousands...
View ArticleWindows PowerShell 4.0 Quick Reference Guides are Available for Download
Are you a frequent user of PowerShell, but always find yourself wishing you had a great quick reference sheet available? Then you will definitely love this bit of news! Microsoft has released an...
View ArticleCreation of Ad users
Gentlemen,This little script is working however the password and the user wont be "enabled" and "pswd never expires" won't be true after running script, could you please drop me a hint why?The...
View Articleget data on same line
I have this code. $OSDArchitecture = "OS Architecture"$GetInfo1 = (get-ItemProperty hklm:\SOFTWARE\Microsoft\MPSD\OSD).OSDArchitecture Echo $OSDArchitecture $GetInfo1 >>...
View ArticleCannot Set-AdUser -Manager due to "user must change password at next logon"
Hi.I have about 200 users who haven't changed password yet.I have made and testet a script that sets the Manager for all users. For some reason the script cannot find the Manager for the 200 users that...
View ArticleInvoke Command = Press Enter on an EXE
Hi thereI'm calling an exe via powershell using the Invoke command and i seem to get error one machine and not the other. The only difference i can see is the Program Files pathThis worksInvoke-command...
View ArticleTrying to invoke script from two levels up
I need to execute a script that is in a path structure that is two folders up (back) from my current location. I can not move either script. I have tried invoke-expression -command ".\<script...
View ArticleUse PowerShell Remoting to Manage SQL Servers Efficiently
In all the years I've worked as a server administrator, I've always logged into each server I work on to gather data or make changes. On Windows servers, the standard way to do this is to use Remote...
View Article