Script For Sysytem Inventory
HI All,We have a Windows Server 2008 R2. There is any script is available for the hardware and application inventory for a remote computer in domain.
View ArticleHow to write named parameter with one argument in script
I know if I start my script with Param([Switch]$DEBUG) I can use -DEBUG when I invoke my script and if($DEBUG)... in the script. I also know how to process $Args, but I couldn't find how to write code...
View ArticleI need a VB script to remove the perticular users from the perticular group...
I need a VB script to remove the perticular users from the perticular group from the windows active directory.I have got one script which is pasted below:Remove AD LDS User from AD LDS Group.Option...
View ArticleList files in a directory (Powershell v1.)
I'm looking at the examples to out a directory listing all the files into a .txt document. I can't seem to use the GET-ChildItem command to work in a different directory,Get-ChildItemThis lists all the...
View ArticleTrouble Piping Commands
I am working on a PS Script to add users to AD, set their home directory, create the home directory and set the permissions, add them to their appropriate group in AD, add to OnPremise Exchange, and...
View ArticleCommend Prompt on Windows 8/8.1
Hey Guys I have a problem which occurs on only Windows 8/8.1Older versions have no problem like that.Whenever I normally run a script (.bat) file it works fine and it's current...
View Articleusing names passed to -ComputerName in the output
Hey guys,Would you be able to help me? When I use the -ComputerName switch in a cmdlet, or function, I get the results as expected. For example:Get-Service -ComputerName server1, server2 -Name...
View ArticlePerform remote intallation via script
Hi,My aim is to push script (.bat file along with the installer or any other task that would run on any client within my network)I have two batch file named remoteload.bat and remoteload2_kb.bat,...
View ArticleHow to make it sub folder ?
$folder  = "C:\test" #end param Get-FileMetaData -folder (gci e:\music -Recurse -Directory).FullName Get-ChildItem -path $folder -Recurse Function funLine($strIN)  {  $strLine = "=" * $strIn.length...
View ArticleSelected file is the input for my script
Hi guys!My knowledge about the powershell world is limited, so i don't know if what i'm asking you is possible.I've added an item on file context menu that call a script of mine, now i want that...
View ArticleHow to change the title bar fonts size by using command line
In W8.1, by right-clicking the desktop, and then clicking ‘Personalize|Display’, I can alter the font-size of title-bars up to 24pt. This works well interactively. Is there a way to do this in a...
View ArticleHow to accumulate the uptime of a vm?
Hi guys,how to accumulate the VM uptime of a day. if i just get the VM uptime, i just show the last uptime when VM start. In case, if the VM start then suspend, then shutdown, then start again in one...
View ArticleStep Through a List of .p12 Certificates and Their Passwords to Extract...
This is a follow-up question to my previous thread: http://social.technet.microsoft.com/Forums/en-US/58ca3098-e06d-419a-9465-1ae7973e1c04/extract-p12-property-information-via-powershell?forum=ITCGI...
View ArticleRe activate cd-rom drive
Hii'm the administrator of a 300 computers domain and the guy before me desactivate the cd-rom drive using device manager right click desactivate on each computers when he installed it.I have to re...
View ArticleBackground Job stuck when calling New-PsDrive or Copy-Item
Hello,i've a very strange issue with Background Job in Powershell.I writed 2 powershell script, the first CitrixModule.ps1 contains my function with CmdletBinding attribute, it's a very big script (300...
View ArticleTrouble with Increasing a Variable Name in a Foreach Loop
Hi Everybody,The Powershell Script/Programm im writing is for the purpose of deleting false Snapshots from hyper-v virtual machines.At first everything looked good so far but know i think im running...
View ArticleSort oddity when array is initialized via Get-Content vs inline
Create data.txt via Notepad containing three lines:ABCZ ABC_ ABCASaved as ANSI.Get-Content -Encoding Byte data.txt 65 66 67 90 13 10 65 66 67 95 13 10 65 66 67 65 13 10 $a = Get-Content data.txt $b =...
View ArticleGetting version of installed Office application via Powershell or Batch
Hi i am trying to figure out the versions of office installed on all the machines in my domain. I know how to find out the version of office (2010,2013, etc...) but i do not know how to get the version...
View ArticleGet wmic to read a file with multiple hostnames and output who is logged on
I am looking for a way to get WMIC to read a file will a list of hostnames and to return the currently logged on user if any.At the moment I am just using wmic /node: "hostname" COMPUTERSYSTEM GET...
View Articleretrive password ($credential) using powershell command doest work in all...
Hi,below command for getting the password via powershell works for 1 serverbut throws and error for other server machine ?Commnand - $credential.GetNetworkCredential().passwordError - You cannot call a...
View Article