DPM and VMM PowerShell Modules
Good day everyone!Very strange issue: when i try to load together Virtual Machine Manager 2012 and Data Protection Manager 2012 modules - script failsPS C:\Windows\system32> ipmo...
View Article"Scriptblock Parameter" ?
Is the last section of the post at http://blogs.msdn.com/b/powershell/archive/2006/06/23/643674.aspx wrong regarding a so-called "Scriptblock Parameter" ?
View Articlegetting the name of files being extracted
Hello all:I have a script that is extracting files from a zipped file. I am trying to display the name of the file as it is extracted. Here is what I have:foreach($item in $zip.items()) {...
View ArticleDeny log on to Remote Desktop Session Host with powershell on Windows Server...
Hello,I've tried to set the 'Deny this user permissions to log on to Remote Desktop Session Host server' using ADSI adapter in powershell$ADUser =...
View ArticleCan't import grouppolicy module on a DC, with the GMPC installed
Hi all,I've got a Windows Server 2008 DC which has the GPMC installed already, but I can't import the grouppolicy module.import-module : The specified module 'grouppolicy' was not loaded because no...
View ArticleFill variable with leading zero's
Hi guys,variable given $Number="21" or $Number="0" ... I now have to set this variable into a length of 8 chars with pre "0"'s ...e.g.$Number ="21" should become "000021" or $Number="434" should become...
View ArticleUnusual UNC issue when trying to copy files from a network share
Hello all:I am experiencing a rather strange issue. I am creating a script that copies a file from a network share. I am using Adera's Powershell Plus. My path is...
View ArticleData Protection in PSSession - Access is denied
Hi,I have a Windows service that is written in Python which runs under a local administrator account. Under various conditions it creates a New-PSSession to the local computer as another user (e.g....
View ArticleRetaining modified date on files being unzipped using PowerShell
Hello all:I am writing a script that will unzip a file located on a networked share and place the files on my local machine. The problem I am having is when the script copies the files over, the files...
View ArticlePASSING, SENDING KEYSTROKES TO APPLICATION
I have difficulty in passing the key stroke Phx3%Dec13 to a opened/active unix application from a powershell script. Only the three charactorsDec13 get passed. Any suggestions Please ????
View Articleconvert a text file to PDF format
Hi,How can I convert a text(.txt) to a excel file using Powershell commands ? At the moment I am doing the conversion with VBA, but time consuming, as its a very big file.Kindly help.MIG.
View ArticleCopy owners with robocopy using powershell.
Hi Friends.. I have created script to copy folder from one location to another location in PS. using Robocopy.. but By this script cannot copy the owner of the source location folder to destination.....
View ArticleExchange Powershell : Loop through all users/Mailboxes and run an exchange...
Hi all,What I need to do is grant one user read access to the whole business exchange calendars. So I’ll need to loop through or create an array of all users using powershell in Exchange. What’s the...
View ArticlePowershell: Adding printer permissions to all network printers
Hi Gurus,I've created a new Sec Group and provisioned all management access to our print server; however, these permissions have not been inherited downward to the printers themselves. I'm looking for...
View ArticlePath tool long when using arrays
Hey Powershell people. I'm running into an array issue in powershell where the error "Copy-Item : The specified path, file name, or both are too long" is thrown back at me. However, the odd thing is if...
View ArticleImport-Module WebAdministration question
Hello all:I am writing a script that will copy files to a local root directory for a web app we have. Once this is done, I want to refresh the application pool. In reading on the process, I believe I...
View Articlework with excel files in PS
Hi,I am trying to work with Excel sheet using Powershell.I need to fetch data from SQL table and put this data in different sheets.I am able to do it from machines where MS office (Excel) is installed...
View ArticlePowershell v2 and Sharepoint 2007 - Empty huge recycle bin - HOW?
Hi all I need to delete the First and Second stage Recycle bin for all of our personal sites, as the total size of these has somehow exceeded 140GB. I am however stuck as to how to do this. I have...
View Articleget-adorganizationalunit problem
HiI'm trying to run this command as part of a script:Load-ComboBox -ComboBox $comboboxOU (Get-ADOrganizationalUnit -SearchBase 'OU=Users,OU=Lab OU,DC=mylab,DC=local' -filter *).Name...
View ArticleCould you pls explain the "Get-Acl C:/Windows | fl" output?
Could you pls explain the "Get-Acl C:/Windows | fl" output? There are some nos. what are those indicate?PS C:\> Get-Acl C:/Windows | fl Path : Microsoft.PowerShell.Core\FileSystem::C:\Windows Owner...
View Article