All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

Why am I only seeing logoff, but no login, events in Windows Event Logs?

I want to audit when every user logged into of logged off a server via RDP. When I run Get-EventLog or Get-WinEvent and filter for Login (Event ID 4624) and Logoff (Event ID 4634) events, I only am ...
Liam Kelly's user avatar
-1 votes
1 answer
48 views

Can already opened event log screens of powershell on windows event viewer can be hacked offline by hackers? [closed]

Can Windows powershell give me fake or altered outputs if I use common commands primarily used in powershell checking hash codes is option but they can be altered too theorically so its not that ...
Mande de su ka 's user avatar
0 votes
1 answer
169 views

powershell detect login is sftp

tl;dr in powershell, how can I detect a login is specifically SFTP and not SSH or local? On Windows 10 I have the built-in OpenSSH service running. For SFTP protocol connections, the server uses the ...
JamesThomasMoon's user avatar
1 vote
0 answers
157 views

PowerShell - Failure to load built-in modules due to software restrictions

Yesterday, I was working with PowerShellEditorServices to develop a tool. Internally, it uses named pipes to communicate between the client and server. They are both running locally. At some point, ...
Adam Driscoll's user avatar
0 votes
1 answer
701 views

Task scheduler - run whether user is logged on or not

I am trying to run task scheduler on my local pc (windows 10), I have set it up to run a exe file stored on my C drive daily, but it doesn't run when I set it to "run whether user is logged on or ...
Steve's user avatar
  • 3
0 votes
1 answer
192 views

Script to cleanup Windows.old remotely

Problem: A lot of older workstations on our networks are running out of hard disk space and I am looking for ways to stream-line the process of cleaning up some space. I understand I can use Disk ...
PedalTech's user avatar
0 votes
1 answer
54 views

How to create and manage a new DCOM object via batch or powershell

Win+R. dcomcnfg > I need to register a new dll using this tool as a COM. I can do this manually. But I have a lot of WS. regsvr32 is not enough. The COM App need to exist in dcomcnfg So, can it be ...
Inkvee's user avatar
  • 3
0 votes
0 answers
81 views

Turn off Focus assist via GPO not working as expected

Is there a standardized way to turn off focus assist centrally since i am trying to display balloon tips and toast notifications for applications and windows updates being deployed from sccm software ...
john zuh's user avatar
5 votes
0 answers
109 views

Powershell: How to read secure strings from textfile with windows service

I saved credentials of my vSphere environment to text files with the Powershell ConvertFrom-SecureString. I want to use this credentials in my powershell script using the following command: $...
TheWhiteJoker's user avatar
0 votes
0 answers
134 views

Test-SRTopology Fails to Create CIM Session to Local Host

We are trying to setup Storage Replication between two brand new Server 2019 VMs. I have followed all the steps in Microsoft's guide (https://learn.microsoft.com/en-us/windows-server/storage/storage-...
Caynadian's user avatar
  • 444
1 vote
1 answer
935 views

PowerShell commands to manage NPS Radius policies?

Are there PowerShell commands for managing NPS RADIUS policies? I see commands for RADIUS clients (Get-NpsRadiusClient; etc), but nothing for the policies, I can't find a command to create the NPS ...
user3271408's user avatar
0 votes
2 answers
40 views

Spot instance windows auto login in User Data using Boto3

I want to launch a Windows spot instance on AWS with a specific AMI and launch the instance and run PowerShell command. The problem i am facing issue is that, when the instance is launched, it shows &...
dextoruz's user avatar
1 vote
1 answer
154 views

Windows OpenSSH Match Exec string with embedded quotes

Under Openssh for Windows, is there a way to specify an exec string for powershell with embedded quotes? It's made complex by the fact that a multiword command must be quoted, and I can't figure out ...
Autumn's user avatar
  • 123
0 votes
1 answer
231 views

Event 1202 when trying to run a scheduled task GPO under NT Authority\System

I'm trying to get a barcode font installed on machines for a enterprise application. The GPO is being served from a Windows Server 2019 Standard version 1809 OS build 17763.4252 server. The GPO in ...
Liam Chaney's user avatar
0 votes
0 answers
424 views

Cannot install any appxpackage on Windows Server 2022 Core because windows.capability extension is not registered

Installing anything via Add-AppxPackage cmdlet results in error: Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF6, Package could not be registered. error 0x80040154: Cannot register the ...
BrandonStudio's user avatar
0 votes
0 answers
70 views

How to create two different firewall rules with the same name that applies to different profiles using PowerShell?

I have a server that has the following firewall rules. I'd like to mimic this on a another server running the same OS. Currently, I have this rule. How do I split it into two rules: one that is ...
noobie's user avatar
  • 101
1 vote
1 answer
518 views

Windows Feature Update Silent Install

We are trying to push out the latest Windows Feature update via our RMM but when running it doesn't appear to do anything. We've tried running the following: PowerShell Start-Process -FilePath "...
Ronald Simmons Jr's user avatar
0 votes
0 answers
196 views

Scheduled task with powershell won't restart when the script fails

Scenario I want to invoke a rest api on daily basis with some retry mechanism in case the rest api is not available Problem Even when the action exits with a non zero exit code, it is not restarted. ...
Liero's user avatar
  • 101
0 votes
0 answers
19 views

vmware tag and description

i have created some tags with description in vcenter like TAGS DESCRIPTION AppOwner Brad pit APpOwnerEmail [email protected] Environment NIIT-UAT and attached to a ...
uozzyy's user avatar
  • 33
0 votes
1 answer
117 views

Execute command on windows client from windows server

how can we execute command on CMD or power shell windows clients from a windows server or admin domain on network we are using windows server 2016 for active directory and all users have windows 10 we ...
RedOne's user avatar
  • 11
2 votes
1 answer
454 views

PS Stop-Process fails to stop a subprocess launched from cmd.exe

Preface: I've boiled down a problem I'm having to this simple reproduction, which admittedly looks pretty strange out of context. From powershell (PS), if I use Start-Process to start notepad and ...
cod3monk3y's user avatar
1 vote
1 answer
421 views

PowerShell script to write a printer name

I have a PowerShell script. This: Get-Printer | ft name,portname,location | Export-Csv c:\intel\intvprint2.csv -NoTypeInformation But it isn't any good :( I made the script, but the result is file ...
Robert's user avatar
  • 19
-2 votes
1 answer
316 views

Unusual Error on Exchange Server 2019 Enterprise

I've got my own personal Microsoft Exchange Server 2019 Enterprise at home and I recently upgraded all the VMware Guests to Server 2022, Rebuild all my domain controllers from scratch from 2012 R2 ...
Daniel's user avatar
  • 3
0 votes
1 answer
1k views

how to install OpenSSH Server windows 11 OFFINE, without internet connection with powershell

I need to isntall SSH server on windows 11 using powershell. It should be a script that isntalls SSH server and logs you in and does everything untill this: ssh domain\username@servername These are ...
Gaara's user avatar
  • 1
-1 votes
1 answer
413 views

Remotely open PowerShell via Intune/365?

The organisation I work for have a range of different devices, mainly laptops, Surface Go and Surface Pro. We have a number of devices that we need to physically locate at our sites for servicing and ...
rgmnz's user avatar
  • 11
0 votes
1 answer
1k views

Unable to install printer driver using pnputil

I am trying to install multiple printers on a print server, however before that as a pre-requisite I have to add the printer drivers for which I am performing below steps but I am unable to view the ...
Ishan Sharma's user avatar
1 vote
1 answer
448 views

windows PC configuration: force logout/ kill existing sessions on restart

As part of our PC Build ,configuration and deployment process, we use Window Deployment toolkit and WCD (windows configuration designer) to setup 4 users with different access. Some users are in kiosk ...
shelbypereira's user avatar
1 vote
0 answers
27 views

OneDrive, can you migrate shared locations from one computer to another?

We are migrating users to new computer, and they have around 10 different SharePoint sites. Is there a way to copy the settings to a new computer, without manually doing so. I've looked at Computer\...
Henry_Parker's user avatar
0 votes
1 answer
730 views

Accessing more properties of Local Security Policy with powershell

I want to modify any property that is in secpol.msc > Security settings > Account Policies. Microsoft unfortunately only gives support for a few of them, so there are still properties that I can'...
Nuro007's user avatar
  • 101
1 vote
0 answers
443 views

Windows test network folder permissions for another account

How to test that an account other than login account has access to a network folder ? Here's an example : I'm logged in as steves but I need to test if joej has access to : \\contoso\dept\finance\...
BaltoStar's user avatar
  • 207
0 votes
1 answer
1k views

WinRM connectivity issues with workgroup and vlan subnet

Situation: 1 server (Windows Server 2022) (192.168.15.5) 1 client (Windows 11) (192.168.5.5) Unifi network setup where both machines are on a different VLAN (subnet) On the server: Run Winrm ...
Geert van Horrik's user avatar
1 vote
0 answers
1k views

Only 2 cipher suites are offered by Powershell Invoke-WebRequest

I am performing a Invoke-WebRequest to a site using Powershell. And i'm facing error "Could not create SSL/TLS secure channel" PS C:\Users\admin> Invoke-WebRequest -URI https://...
kype's user avatar
  • 111
-1 votes
1 answer
58 views

Automate shutdown of windows server when all apps are closed

I have three high processing machines running on AWS. Our engineers run specific applications on it that requires like 192 GB of RAM. Main idea behind this is after they start processing the job, no ...
Learner's user avatar
1 vote
1 answer
430 views

How to run Powershell from batch file with normal background colors?

When I click the Powershell icon, it comes up with a blue background and a certain look. If I run Powershell from a batch file, it comes up with a black background that looks like cmd.exe. Is there a ...
Roman's user avatar
  • 405
2 votes
1 answer
7k views

How to get a complete list of all installed software via Powershell?

I'm trying to figure how to view the version numbers of all installed software in Powershell on Windows 10. I dug up an example but when I compare the generated list to what's in Control Panel > ...
Nstevens's user avatar
  • 321
1 vote
1 answer
2k views

How to run cmd.exe using the system account on Windows 11?

I want to run cmd.exe not as administrator, but as the local system account on Windows 11. Apparently it was possible on Windows 10 using psexec. On Windows 11 with psexec v2.40 I get this error from ...
Casady's user avatar
  • 121
1 vote
2 answers
1k views

winget not working unless I do

When I open Powershell, and type winget - this is the response: winget : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of ...
Thomas DeColita's user avatar
2 votes
1 answer
665 views

"Advanced network settings > Data usage" statistics using PowerShell

How can one get the Advanced network settings > Data usage statistics in Windows 11 using PowerShell? I couldn't figure out how to get the total data consumption per process using Get-...
Ayan Mullick's user avatar
2 votes
1 answer
3k views

Why is the GroupPolicy module not found even when RSAT is installed?

I'm trying to use the Get-GPO PowerShell module. So I installed RSAT first, but the GroupPolicy module is still missing: PS C:\Users\admin\Desktop> Install-WindowsFeature RSAT Success Restart ...
daisy's user avatar
  • 757
1 vote
1 answer
358 views

Powershell showing only 0 values for available cipher suite

I have multiple VMs within the azure cloud. All of them, except one, are unable to connect to certain services using SSL with the message Invoke-Webrequest : The request was aborted: Could not create ...
JBVBO's user avatar
  • 21
6 votes
1 answer
3k views

Is there a way to programatically determine whether a Windows computer is AAD joined as SYSTEM?

I would like to be able to determine via script whether a given Windows workstation is AAD joined, Hybrid AD joined, or on-prem AD joined. I would like to run this script from the RMM I'm using so I ...
phaedrusschmaedrus's user avatar
0 votes
2 answers
26k views

Run a PowerShell script once on all computers as admin via GPO without changing execution policy

I have a PowerShell script that I need to run once on all computers in my Active Directory domain. A large number of computers are off at any given time, so a GPO would allow us to ensure that it ...
CMS's user avatar
  • 11
0 votes
1 answer
19 views

Globing patterns

How can I make a command string work using globing patterns also in the given arguments? powershell.exe -c "&'c:\wind?ws\System32\more.com' C:\path\to\something.txt | findstr 'something'"...
jagghy's user avatar
  • 3
0 votes
1 answer
3k views

PowerShell - List WSUS Updates Needed for Each Client

I need to provide a monthly report to our client listing the updates needed by each Windows server in our environment. Ideally, the report would list the updates for the month and the servers in my ...
jrd1989's user avatar
  • 688
1 vote
1 answer
3k views

How to delete a Scheduled task folder with PowerShell?

I need to delete a scheduled task folders on a lot of machines, ideally with PowerShell. I couldn't find anything on how to do that - it seems like the documentation covers everyting but folders. Did ...
bjoster's user avatar
  • 4,847
1 vote
1 answer
128 views

Windows file content not updated in Explorer/Powershell

On a Windows Server a logging tool writes .log files to disk continuesly and rotates log files daily at midnight. Every day the new log file gets created, but almost every day its content / meta data ...
Johannes B. Latzel's user avatar
1 vote
0 answers
3k views

Add-WindowsCapability fails with "Source files could not be found"

I am trying to install RSAT on some Windows 10 systems that have no internet connectivity. Two of the Windows 10 systems are 20H2, and one of them is 21H2. All three have the same problem. To install ...
user3271408's user avatar
1 vote
2 answers
3k views

Why does Test-NetConnection indicate connection can be made, but I cannot visit the site?

I need to determine whether a particular site is accessible on a particular port, given that firewall restrictions exist on the network. If I cannot access the site on a particular port, then that ...
geekygeek's user avatar
  • 111
1 vote
2 answers
784 views

Windows Equivalent to `sha256sum -c` (cryptographic hash, digest file, recursive integrity check, SHA256SUMS)

What is the equivalent to sha256sum -c in Windows? I have a set of very important files that I need to copy-to and mirror across many different types of disks in many geographically distinct locations....
Michael Altfield's user avatar
1 vote
0 answers
243 views

Is this scenario a possible issue/bug with WINRM and IIS w/site bound exclusively to loopback address

I believe I have discovered a very strange, narrow issue relating to an interoperability problem with IIS and WINRM exercised by Powershell on Windows 10. I have a device that has an IIS site bound ...
David W's user avatar
  • 181

1
2 3 4 5
15