Powershell script to change the name of the child node in XML
Hi,I am trying to replace the XML child node name. Below is the XML that I have. In the below XML there is a Parent and Child tag named as <TrkTraceTxt>. I want to change the name of Parent or...
View Articleremote to start service help!
We need to get two services (name a and b) status from different domain and if service name a and b stop, we need to start them. I found out that it is difficult to start two services from different...
View ArticleAll Users- with Created dates
What can I use to run in power shell so that it outputs a list of all users in the forest with the dates those users were created.Some audits are very specific :(
View ArticleHow do you import a scheduled task to a subFolder?
The following script works to import scheduled tasks to the root of the task scheduler, but fails when trying to import to a subfolder.# Script to import scheduled tasks into new server after being...
View ArticleRemove all groups from one user
I need a Powershell script using native or Quest cmdlets to remove ALL groups from a user in AD. Now here's the catch, the user is a member of groups from 3 different trusted domains in a single...
View ArticleDetect smart files that are "online only"?
Is there a way to enumerate all files in a tree where the availability attribute is "online only"? I have an issue where a directory that was symbolicly linked in skydrive ended up with a bunch of...
View Articleremote execution of powershell on azure IAaS VM using C# Code
hi I have to run some powershell command in remote Azure VM, from my local machine. I can do it in interactive mode, using enter-possession.But I want to achieve this from a C# code. I tried creating...
View ArticleHelp with Reading XML file
Hey guys,I am trying to read a XML file from PowerShell and store the data into an array/variable from the tags of the XML.Here is the XML content.<?xml...
View ArticleHome directory creation for local user accounts using powershell
Through Computer Management when I create a user, a home directory is created for the same user in the folder C:\Users.I am creating a user through powershell in a remote machine.I am using the...
View ArticleClose all popups pulled from running a an executable
I have been using PowerShell to automate some functions. One of them is when I call an exe file to process user accounts. The exe file produces a popup. It looks like a form with no options but to...
View ArticleGet-WmiObject -class win32_process -ComputerName with multiple...
I am trying to write a script to query multiple servers for multiple processes to get each process thread count. See below as I have it working for only one process and the output displays below....
View ArticleModifying Settings on a device with Set-WMIInstance
Hi all,I am trying to modify a paramter from a FC HBA on a WS2012 host through powershell:Set-WmiInstance -Path...
View ArticleIp address comparsion from a text file
I am writing a script to get the Ip addresses for the multiple servers and save it as an array and have a condition to compare it with the IP address saved in the text file and if they match print out...
View Article[POWERSHELL] Change File Attributes
Hi guys!!I have a folderwith some files,I do not know how manythey are, what is theirextension or attributes.I want tomake sure that, if a filehas among the attributes the hidden property(so it can...
View ArticleUsing Powershell to send a message to a Syslog server
I need to get-content from a .txt file and search for a specific string and then send the string to a windows syslog server. I have no issue getting the content from the txt file. What I need help with...
View ArticleRead in specific line numbers from a text file (very large 1.5GB) using...
Hi all,I have a large file (a text file) which is over 1.5GB in size. I need to read in specific line numbers from the file, I have a list of exact line numbers I wish to read.If I use "get-content"...
View Articlequick question
any1 knows how to show processes tht uses more than 10 mb, and it shows name of process, PID and quantity of pagined memory by that processLoïc Potvin IT Student 2013
View ArticleDoes any encrypted password in a text file expire?
I know this sounds crazy, but I have an encrypted password in a file that works for a while then suddenly stops and I have to recreate the file. And no, the account password itself has not changed....
View Articlesent by email HTML poweshell template not showing tool tip
May it is not the righ forum my apologyThro programatically by powershell I construct HTML string and sent via email. I wanted to show the tool tip. I send this via email and when I open the email...
View ArticleAdding multiple users to multiple mailbox
I need assistance in Adding multiple users to multiple mailboxes.I have the script for Single user and multiple mailboxes$mbxlist = Get-Content E:\Users\sid\MailBox.txt ForEach ($mbx in $mbxList ) {...
View Article