Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

How to override powershell memory limit in remote session

Hi,I am trying to run a memory allocation tool (testlimit64 from sysinternals suite) on multiple windows VMs remotely. The VMs run windows server 2012, patched up to date.The machine i'm running the...

View Article


new-partition but supress the dialog

hi, I want to initialize, partition, and format using PowerShell on windows Server 2012.The following 3 lines  works, BUT the new-partition step opens a dialog "You need to format the disk in drive G:...

View Article


Copy and rename files using a CSV with Powershell

Completely new to this and I am trying to run this simple script to take my source file and copy\rename to a new location.SAMPLE CSV: ORGINALFILENAME,NEWFILENAME G:\Academy\Client...

View Article

Pull All User Attributes with PowerShell

Okay, when I go into ADUC and open up the Attribute Editor for a User I see something like 300 attributes. Many are blank or unused, that's fine. I need to pull that full list with Powershell. I don't...

View Article

Task schedular not run a ftp application

Hi all.    I Created a Windows Application through vb.net .When i run the exe manually its working.and upload the excel file to ftp link.When i run the application through  task schedular its not...

View Article


office365 new-msoluser

Hi I've got a script which creates new office365 users/mailboxes from csv using the new-msoluser commandlet. I was wondering if it were possible to include the add-distributiongroupmember command into...

View Article

List empty OU's

i’m using below query to list empty OU’s fom AD. but its not working :( could some one help me ? Get-ADObject -Filter {objectclass -eq “OrganizationalUnit”} | Where-Object {@(get-adobject -Filter *...

View Article

PowerShell to Get Duration of Network Connection

Hi, Is it possible to get the an idea on how to get the Duration of the network Adapter?I have tried couple of commands in PowerShell but none on them gives me the Duration.Any help?Thanks,

View Article


Enable-PSRemoting Error

Hi...I am trying to run the Enable-PSRemoting in Windows Server 2012 domain controller. Ifollowed the linkto open the port using group policy....but I am getting the error mentioned below...Also tried...

View Article


How to get a parmeter name and type for any command/Script

Hi,we have a requirement to fetch all the parameters for any powershell command/script using c#. Can you please help me to find the soultion for the same.Thanks, Srikanth

View Article

remove item command

I want to delete some files on multiple servers.How can i execute this commands on multiple server.Remove-Item D:\vpm\* -include *sys.txt,error.txt,log.txt get-childitem D:\vpm\*.* -include *.txtIf i...

View Article

Adding color to a RichTextBox

So I have a RichTextBox and I want to colorize individual lines.  The 3 lines I have now areRedGreenBlueSo, I want Red to be in Red text, Green in green text, and Blue to be in Blue text.  I have...

View Article

PowerShell remoting: Results not returned using Enter-PSSession vs...

So my code generates output when using Enter-PSSession but the same code does not return data using invoke-command (using CredSSP) as a script.Here is the relevant excerpt from my script: So I am able...

View Article


-Filter parameter

Hello!Having read this: http://www.computerperformance.co.uk/powershell/powershell_wmi_filter.htm"PowerShell -Filter ParameterPowerShell's -filter is an alternative solution to the | Where-Object...

View Article

run an exe without prompt to run or not from powershell

Hello Team,I am developing an automation to install few application on PC remotely, script run on windows 7.I need to run set of .exe files from shared drive. I have map the drive where installation...

View Article


Eventviewer Log to Text File

In Eventviewer -> Application and Services -> Microsoft -> Windows -> Backup -> Operational there are various events, In case Event ID 4 or 5 occurs need to send all the contents in...

View Article

WinRM cannot complete the operation

I have been trying to deploy Microsoft Dynamics NAV on Windows Azure. Microsoft has gives few scripts which helps us deploy. While running the script I get the error :"Get-WSManInstance :...

View Article


Looking to modify this script to pull user highitem count and exclude a...

I have found the below powershell script that pulls highitems from exchange 2010. I would like to modify the script to exclude users who are part of a specific OU. I am also looking to include archive...

View Article

get timings for ssas full cube process keep a log

  Are there any scripts where you can get start end time of a cube rebuild. I know you can get the LOG of the process, but would be nice to see start stop for each dim and Measure group. Like...

View Article

script to RDP multiple servers

Hi,Please help me in my below query...First Question              I needs to check if i can RDP to multiple(34) windows servers.               I am using the below script to find out if RDP is open on...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>