manually importing ODBC reg key into registry
Good Afternoon Im trying to manually install the registry key into a machine using powershell i know that i can import the file but that leaves a risk that if the source file ever gets deleted or moved...
View ArticleAdd users into AD Security Group
I need to add from a list of users to an AD security group.I now work in a new company and no one know PowerShell (I'm so alone)I've google and have come up with the script below.My CSV will have a...
View ArticleDelete Entire XML Element (Node)
How can I delete an entire XML Element after loading the XML Object?$xml = New-Object XML$xml.Load($pathToFile)Each file may have multiple entries of this node with different attribute data and I want...
View ArticleRemove XML attribute
Using an XML document in powershell how can you remove an attribute string from an element? Not looking for a solution that uses Get-Content, but one that uses: $xml = New-Object XML...
View Article耐吉慢跑鞋 lGpho Grg1 Jaub
衛無忌知道,這個條件,已經可以稱得上很優厚了。如果他手上有的話,絕對是願意換的,可惜的是,他沒有。當下里,他搖了搖頭,回道 adidas官方網手中並沒有雷係法安。前輩願意等待的話, adidas...
View Articlerename folders in order
Good Evening In the environment we have a folder called c:\dacto\trading with two folders inside of it one that says trading and another one that says pre trading on about 20 servers anytime we do a...
View ArticleHow to make print property command work the first time. It takes 2 to 4 times...
I am using this command to change the printer property from color to black and white. It works for the first time but when I try to use it again for a different printer it looks like it worked without...
View ArticleHow can I check if system drive has less than 5GB using Powershell and WMI?
I need a Powershell and WMI query that will do the following:Doesn't assume that SystemDrive is C: (this needs to run on hundreds of machines and windows may not be on C)Checks if there is less than...
View ArticleFrom the Microsoft Dynamics NAV Blogs: New design pattern; Assembly order...
A selection of the latest insight from the Dynamics NAV blogs: Read More
View ArticleReport DNS entries - Change DNS entries on Remote Server (2008 and 2012)
Hi,I am completely new when it comes to powershell so I am asking for help.I need a script which pulls server names for a txt file and outputs the DNS details for each NIC.I then need a script to pulls...
View ArticleWhich Loop To Use?!
I think I am trying to run before I can walk but I am trying to learn PS by creating a solution to a problem I have – best way to learn right?!This is what I am trying to accomplish (utilising PowerCLI...
View ArticleAD query. How to execute faster?
Hello,i have one script, what retrieve mail contacts thogh new-pssession to exchange server and invoke get-contact, like this:$ExchangeSession...
View ArticleEditing PS4 (server 2012) script on Windows 7....
This is a tough one to search for but its failrly straightforward.....My development machine is a Windows 7 box. My coding weapon of choice is PowerGui. I have that loaded and I'm running PS4. So I...
View ArticlePC Tech Tool
So I'm very new to powershell and I only have a few questions because I've poked my way around it for the last few weeks creating several little GUIs in Powershell Studio and now I'd like to create...
View Articlegreater than
I have the following code that works. It will return the number of days since the last reboot. $machine is a list of machines read from an AD OU.# this is done within a LOOP$lastboot = Get-WMIObject...
View Articlestrings from txt to .xml files
Hi,i need help. i must do the script with instruction : 1. Create a folder structure with a few sub-folder ( manually )2. Add some XML documents within child folders ( examples from internet ) 3....
View ArticleArray of Variables
I am new in powershel and i would like to know if it is possible have an array of variables, something like this:$OS = Get-CimInstance -ClassName CIM_OperatingSystem$Ram = Get-CimInstance -ClassName...
View ArticleNeed PS Script for migrating SharePoint 2010 Data to a File Server
Hi, I am looking for a Power Shell script that I can run on my Server and it should migrate the data from SharePoint 2010 to a File Server on my network drive. I have 2 site collections and want to...
View ArticleBest Place to Declare Variable
Hey there, I use Powershell Studio to make little gui's. Question is, Where is the best place in the script to declare variables? After $formTest_Load? Before the section where their use? ANy ideas?...
View ArticleCollection of user accounts in various domains
Hi.My task is to collect user accounts from various domains in different forests and dump result to a zip-file in a temp directory on the domain controller.Why? Our employees have various priveliged...
View Article