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

remove "titles"

1) how to i remove the title from :PS C:\Users\peleg> get-process myexe1 Where-Object { $_.path -Like "*MailText*"} | select name, path,id, @{l="W orking Set(Memory) (MB)"; e={$_.workingset/1mb}}...

View Article


Powershell:- Display Data in Columns

Hi,I hope that you can help, I have written a powershell script that pings all our external routers (Router Names held in a txt file) and then outputs the results/status to a HTML page, for the IT...

View Article


Enable Remote Desktop Connections with PowerShell

What is the easiest way to enable remote desktop connections on Windows 7, with powershell?

View Article

Deploying SSRS Reports using Powershell Method not found

I'm using this template from TechNet to deploy my SSRS reports with powershell...http://gallery.technet.microsoft.com/Bulk-Report-Deployment-f03e1aac/view/DiscussionsThis line gives me an unknown...

View Article

Setting Pagefile

I've been using the following script to set pagefile on my servers however for some reason it's not working on server 2012.  I get an error "Exception calling "Put" with "0" arguments "value out of...

View Article


Powershell "Get-VM" error

Hello,When I run this command in powershell cli, I get the following error.PS C:\Users\Administrator\Desktop> Get-VM The term 'Get-VM' is not recognized as the name of a cmdlet, function, script...

View Article

Exception calling "AddAccessRule" with "1" argument(s): "Some or all identity...

Hi guys, Im trying to make a permission group, folder and set the permission to the folder, but it returns me this error :Exception calling "AddAccessRule" with "1" argument(s): "Some or all identity...

View Article

Remove all but first charactor from a string

I can't seem to find an solution.  Please help.  I want to create a function thats wrapped around the new-mailbox cmdlet.  I want to take the first name and last name.  Then take only the first...

View Article


NTP Time comparison

hi,1. how to find the NTP server in a doamin?2. i need to take a report that compares the time of NTP server with the member server on that domain using PScan someone please help me on this?

View Article


Find and Replace special characters text in file

I am trying to find and replace key/password in sql files.  Here is what I was trying:$SQLFiles = get-childitem "\\server\e$\Scripts\*.sql" -rec foreach ($file in $SQLFiles) {...

View Article

How do I resolve the "Size limit exceeded for Get-Adgroupmember" error when...

Hello,I run the following commands from the 2.0 Command line on a Domain Controller to list the members of a large group (thousands of members) and to count the number of objects...

View Article

Powershell-3 on Windows Server 2008 R2 is incredibly slow. How come?

Hello,I installed powershell-3 using Powershell_3.0_Windows6.1-KB2506143-x64.msu.Now powershell takes a felt eternity just to expand get-he in the powershell command line to get-help. It consumes 98%...

View Article

$Env line of code failing

I have this code that is supposed to add collections to SCCM 2007. I load this up in PowerGUI and it displays a 'red error line' under the the double quote after computername. On this line: $Computer =...

View Article


Calendar permissions for all in Office 365 using PowerShell

Hello all,In office 365, what I am trying to achieve is to give everyone , everyone's full access to calendar permission.Meaning, If I have 10 users in O365, every one  must have everyone's calendar...

View Article

List remote shares without WMI

Hi,We have a NAS (NetApp) that has shared some folders (not hidden ones). I looking for a way to enumerate these shares so I can use these shares to locate resources that are places on these shares....

View Article


Export-CSV issue with custom Members & Null objects

I have created a function to give me all of the custom receive connector IP's we have added to our exchange server and pop them out in a custom set for ease of reading. As the RemoteIPs are an array...

View Article

Running each line in a CSV as a start job

Can someone post a simple example of this...i want to do the followingforeach ($item in $csv) { Start-Job I need to carry that item variable (or line in CSV) into the start-job-DEMPC

View Article


powershell view

Hello, mabey i have a weard question but i am going to ask it any way.is it possible when you are, lets say working i windows to see what happening in powershell. like opening a folder or saving a...

View Article

Get Share cahing enabled or not

Hi, is there a way to check if a share  has caching enabled in powershell?I try with  Get-WmiObject -Class Win32_Share -ComputerName  $serverBut none of the properties that i can see will show me what...

View Article

System.Windows.Forms - If ($button.click -eq "ok") {do this}

Hei,I am wondering how to make this work: If($button_ok) {"you pressed the ok button" $process.kill() } ElseIf($button_avbryt) {"you pressed the cancel button" break }Inside a script like this:...

View Article
Browsing all 21975 articles
Browse latest View live


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