Using environment variable to call an exe
Hello,I'm trying to call a command in PowerShell using an environment variable. Using cmd, I would call the exe using the following command %userprofile%\somefolder\random.exe. When I use this...
View Articleencrypt user/password from windows on shared folder on unix
Dear Gurus I have windows server 2008 r2 and I want to use the command net use command to access Unix shared folder.I have used the command:net use N: \\IP\SHAREDFOLDER /user:username -password...
View ArticleGetting "You cannot call a method on a null-valued expression." error during...
[Net.ServicePointManager]::ServerCertificateValidationCallback={$true} $Dir = "C:\temp" foreach($item in (dir $dir)) { write-output "————————————–" $fileName = $item.FullName write-output...
View ArticleDisable AD Computer from txt file and move it to target OU
This is the script I have, but something is not right. Import-Module ActiveDirectory$computers = get-content "C:\disabled computer.txt"foreach-object{$computer | disable-adaccount$computer |...
View Articlestart-CMPackageDeployment is broken, how to bypass?
I am looking for some help or ideas. We used Greg Ramsey's script as the base to handle the scenario in the subject, unfortunately the Cmdlet to do the same for legacy packages seem to be broken by...
View ArticleWorkflows and Rebootin
I am trying to use a workflow to perform part of a process then reboot then be able to continue and complete the process. The test code I have below is all completing before the reboot. What am I...
View ArticleSet homedrive and create directory, need to output to CSV
Hello Experts I'm relatively new to Powershell scene, and also new to this site! I'm currently trying to automate as many things as possible. One thing I've been looking at recently is automating the...
View ArticlePowershell script for SCCM12
Hi all, I'm not that good yet in scripting so perhaps someone here can help me out. I'm looking for a way to check which of the clients in a network have SCCM 2012 installed and which not. Besides that...
View ArticleChanging Registry Key values
I have the following function to modify values in a group of registry keys. It is run with an account that has local admin rights on all the machines in my environment. The script that calls the...
View ArticleWhere-Object query
Can someone please explain why the following doesn't work?Function Range{Write-Host$range1 = Read-Host -Prompt "Begin range at ref number?"Write-Host$range2 = Read-Host -Prompt "End range at ref...
View ArticleFinFolio’s Portfolio Management Software Adds Windows™ PowerShell Integration
FinFolio’s Portfolio Management Software adds Windows™ PowerShell integration that will allow IT professionals and power users to automate and streamline the import processes. Read More
View ArticleBITS-Transfer with IIS server.
I m tying to upload and download files from IIS server using BITS-Tansfer commandlets. my BITS jobs are getting queued but they are not completing even after explicitly resuming them.I have configured...
View Articleabout using vb/C# to create user+mailbox in exchange 2010
Is there any tutorial to learn?i only know , create it 1 by 1 in Powershell .how to auto enter Password..as it prompts password everytime when creating users in exchange PS
View Articlehardlinks
I have one folder that has inside of it 53 different folders. Inside of each of the 53 folders is 10 files, five video and five text files. I would like to create one folder that contains the files of...
View ArticleExporting mailbox info and device info from Exchange 2007
I am trying to export user info and device info from exchange 2007. I can export user info or device info, however, trying to tie both together is giving me issues. This is my first real attempt at...
View ArticlePS Remoting to a NON-Domain Server
I have a Standalone computer that is not within our domain. I would like to check this server remotely, its on our network and enable-pssremoting has been run and says it is good to go ... also oepened...
View Articlecopy folders with subfolders and files
Hello,i have few lines in PS that are supposed to copy folders with all files and sub folders in them.here is what i have written:$dstfolder = read-host "source folder, please"$srcfolder = read-host...
View ArticleTime stamp in powershell
I want to copy two file with current time stamp with time format like this: yyyy-mm-dd-hh-mm-ssExample: mytestfile2014-11-26-00-10-45The folder contains many files generated by date but I only want to...
View ArticleConfirm Pref of cmdlet?
Hi all,I understand how the $confirmpreference works in PowerShell, however I am a loss as to how to find the preference for a cmdlet? Is there a way to determine which cmdlets are set to which...
View ArticleParse a text file, I'm lost
I admit I'm am new to powershell and i'm lost. I'm using powershell V 3 on Win 7.What I really need is to process a directory of 50 to 100 text files with various names.PS C:\> dir c:\data...
View Article