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

Powershell didn’t pay attention in mathematics!?

Hi All,a short PS question witch I can’t explain.#########################################################$myA="0.40"$myB="1.03"$myA= ([double]($myA))$myB=...

View Article


MBAM - 2.5

Please, i need some documentation and implementation guide of MBAM, something easy and clear to understand, Anyone has it?Thank you

View Article


check if registry key exists using wmi class in powershell

Dear AllIm using WMI stdRegProv in powershell to get the remote registry information. Im able to get the registry values but i should check whether the registry path exits or not ?...

View Article

test-connect blocks of machines?

Since NetSend is gone in Windows 7 we (like many others) still need to send broadcast messages to our environment.   I found the code below which works.   It allows me to send a MSG.EXE message to...

View Article

Updating AD User RDS settings with PowerShell

Hi,I have a simple script that I'm using to do bulk changes to ad users rds settings. Script reads user names from text file and modifies settings from the users listed in file. Is there a way to get...

View Article


Formatting output from SQL query

Hi, What I am trying to do is query a View in a SQL database and export the result to a CSV file. Connecting to the SQL database and running the query works and I can store the result in a DataTable in...

View Article

equivalent of the cat command but reading from stdin and writing to stdout...

I'm looking for how to do the equivalent of cat >outputbut where byte encoding is used. This reads from stdin and writes to stdout with redirection to a file.Thanks-owhall

View Article

Image may be NSFW.
Clik here to view.

Remote-Powershell-Session over Certificate Authentication on Win 2012 R2...

Hello,I am currently trying to gain a remote access to one of our Windows 2012 R2 Standard servers by using certificates and Powershell.Introduction of the participating servers:The server I wish to...

View Article


Need Help in PowerShell Script. Trying to get the userprincipalname,...

The below command is not working. please help on this command.Get-Content'C:\Users\Chinauser.txt' |%{Get-ADUser$user_-ServerXYZ.com}|selectuserprincipalname,msRTCSIP-PrimaryUserAddress. 

View Article


SQL AlwaysOn with Powershell

Hi guys, I'm stuck with a problem during the creation of an Availability Group with Powershell.I have 2 Windows Server 2012R2 ("CODER5", primary / "CODER4" secondary) in the same subnet, joined in the...

View Article

Image may be NSFW.
Clik here to view.

dsdbutil output to XAML TextBox

Hi All,We are managing a couple of AD LDS instances and I would like to write a script which lists the instances. I'm also creating a GUI for this in XAML.So far, I'm able to catch the output of...

View Article

Monitor Memory performance(SOLVED)

Hi all,Please, I need some help to find some powershell cmdlets that will help me to monitor the following "MEMORY" metrics :* Per-Process Handle Count (Count)* Per-Process Memory Usage(MB)*...

View Article

cant call variable in Invoke-Command Script block

Hi All,I have got some script which takes my credentials, creates a text box for users input and then passes that input to a variable and then runs an invoked command calling the credentials and user...

View Article


pass arg to workflow

I am  using a Workflow and within this workflow I want to send a MSG.EXE to remote machines.   I have tried to place a Read-Host command within the Workflow Loop and it gives me an error saying you...

View Article

Get samAccountName from email

i am trying to run a script to get samaccount name from a txt or csv file that has user email address in it and export results to a txt file. Stonecold31666

View Article


Office 365 edit user details using powershell

Hi,I am trying to write a short script to add mobile numbers to multiple office365 users. Each time I run the script I get different results. Sometimes it will work, sometimes it looks to work but does...

View Article

Collect Registry Data on Remote Machine, without invoke-command and with...

Hi,So I'm struggling to find a way to collect all of the registry entries in "SOFTWARE\Microsoft\Windows NT\CurrentVersion" on a remote machine, that I can pass login credentials to. I'm looking to...

View Article


Script to get the amount of windows updates on remote machine

Hello evereybody!I need a script to get the amount of windows updates on sigle remote machine and on multiple machines. Can anybody help me out?Thanks.Bruno Prata

View Article

$Profiles = $ProfileManager.GetEnumerator()

HiIs it possible to target specific users with the above PowerShell in a specific company in AD?cheersShane

View Article

mulitple varibles into a export-csv path

#get the current date $CurrentDate = Get-Date $CurrentDate = $CurrentDate.ToString('yyyyMMdd')$Group = "test" $out =...

View Article
Browsing all 21975 articles
Browse latest View live


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