Quantcast
Channel: /r/powershell – How to Code .NET
Browsing all 8793 articles
Browse latest View live

Updated UI Automation Libraries

Is anyone aware of any new/updated UI automation libraries? The most popular ones – WASP and UIAutomation – have been abandoned years ago. Is there anything out there that’s just as vast as WASP/UIA...

View Article


Invoke-Command, Start-Process and writing a file on remote session

I have this on PC1 $secpasswd = ConvertTo-SecureString "mypass" -AsPlainText -Force $mycreds = New-Object System.Management.Automation.PSCredential ("myuser", $secpasswd) Invoke-Command -Credential...

View Article


Image may be NSFW.
Clik here to view.

How to fetch file from Linux machine using windows

Yes, you read it right. I need to fetch a file from my Linux machine and copy it on my windows C drive. I can do this on Linux using reverse scp method but is it possible to do this in windows without...

View Article

Compare members in OU and Group and add missing members to Group

Okay, I’m trying to achive the following, I have an OU where all of the computers are in. They need to be added as a member of a security group. This scripts needs to be run every time when we get a...

View Article

win32_startupcommand Will not look into wow64 Key

little background, I manage a kaseya instance of 9700 machines and wanted to use a little powershell to remove some startup applications from all of our workstations. Here is what i came up with .....

View Article


what is script. very strange.

I am reading a book, and there is following poweshell command in that book as an example of script. Get-WmiObject -Class Win32LogicalDisk -ComputerName localhost -Filter “drivetype=3” | Sort-Object...

View Article

what is script. very strange.

I am reading a book, and there is following poweshell command in that book as an example of script. Get-WmiObject -Class Win32LogicalDisk -ComputerName localhost -Filter “drivetype=3” | Sort-Object...

View Article

Vote to petition native PowerShell support in Microsoft Excel – PowerShell...

submitted by /u/Throwyourboatz [link] [comments] The post Vote to petition native PowerShell support in Microsoft Excel – PowerShell Macros! appeared first on How to Code .NET.

View Article


Unable to call object properties in quotations?

I have a custom object ($Var) and I want to refer to the object’s name when writing output. Here’s the command I use and the results: PS C:> Write-Output -InputObject "$Var.Name is started."...

View Article


ValueFromPipelineByPropertyName: Sub-Properties?

In a function I am creating, one of the parameters is a list of int32 objects. I want to accept input objects from the pipeline. The problem is, the objects have sub-properties that I am trying to...

View Article

Get-ADUser by filtering on e-mail address taken from a CSV

Hey. I’m learning some powershell so this is what I’m trying to do. Goal: Find AD users by e-mail address and get their names. I’ve tried without the CSV first. Get-ADUser -filter “mail -eq...

View Article

Decipher obfuscated URLs with Powershell

submitted by /u/Net-Runner [link] [comments] The post Decipher obfuscated URLs with Powershell appeared first on How to Code .NET.

View Article

Update DNS hosts on AD servers by OU

submitted by /u/ohstoopid1 [link] [comments] The post Update DNS hosts on AD servers by OU appeared first on How to Code .NET.

View Article


Migrate DHCP scope to new server – Leases and Reservations

submitted by /u/ohstoopid1 [link] [comments] The post Migrate DHCP scope to new server – Leases and Reservations appeared first on How to Code .NET.

View Article

ps command to delete calendar entries

Hello, When I run the following command it seems to want to remove all calendar entries and not just for the specified user. It pops up asking if i want to remove all entries and i have no way to...

View Article


ADUC right click menu and Powershell?

Too give more information to you fine folks, let me tell you what I want to accomplish. I’ve modified the ADUC right click menu through ADSI edit to run a batch file. This batch script passes the...

View Article

Looping through users in a group

End goal is a report is sent out to managers showing all of the employees under them with all the mailboxes they have access to. For now I am trying to loop through all users that are a member of the...

View Article


Remove Alternate Data Streams

So I have an issue with Dropbox files. It seems Dropbox tags files with an Alternate Data Stream of com.dropbox.attributes. When users copy their files off Dropbox and store them on our NTFS file...

View Article

Stuck on script for AD user parsing

Hello. I am trying to write a script that dumps wraps through a list of users and dumps out there appropriate groups to a csv. I have the following, but it isn’t quite working right and I cannot...

View Article

Using powershell to create a desktop shortcut to a UWA application. Is it...

I am in the process of setting up a CDN client application to handle the update process of a AppxPackage/UWA application , and and i have managed to handle to Uninstall/install process just fine, but...

View Article
Browsing all 8793 articles
Browse latest View live


Latest Images