I am trying to Install windows security patches on a remote machine using powershell remoting.
This is the function i am using to Update windows
<#
.SYNOPSIS
This functiion will automatically install all avaialable windows updates on a device and…
I had a lot of pain programmatic creating a folder with ACL and owner..
Taks:
Create a folder only accessible by one user (not even Administrator).
(current) Solution:
Run as Admin:
// path is the directory, "target" the parent directory
String path…
Some users of our application need to be able to connect using a proxy. The first time that the app makes a request requiring proxy authentication, the request fails with the 407 error code, as expected, and Windows pops a dialog like the…
I am writing a PS script to open a URL automatically in a Chrome browser. I created a credential object and pass it to Start-Process as below.
$username = Read-Host 'What is your username?'
$password = Read-Host 'What is your password?'…
I have a script that searches through a protected directory and opens file explorer to a selected location. The problem is that it only works after the user has already logged into the directory.
Example of what sort of thing the code is doing…
When trying to open or sometimes close, via powershell, a word document in a sharepoint directory hosted in my company's network, the windows security box popup.
How can I authenticate this ? Here is part of my script:
$docpath =…
While the main thread impersonates a client, my code creates a thread and assigns it the impersonation token using SetThreadToken. Then the main thread closes the token.
Specifically, the main thread does this:
Get a primary token using…
In this tutorial, I found the following commands.
ICACLS "%SystemDrive%\Windows\System32\inetsrv\config" /Grant "Network Service":R /T
ICACLS "%SystemDrive%\Windows\System32\inetsrv\config\administration.config" /Grant "Network Service":R
ICACLS…
I've went through almost all the posts regarding this issue 2 times to make sure I didn't miss something. I still don't get this to work though.
I have a Console SignalR Hub using Microsoft.AspNet.SignalR.Core I have a console SignalR Client…
I was testing replication on different servers, and I found that the easiest way (for me) to do it is to run all the replication agents (SnapShot agent, Logreader agent , and Distribution agent) under the same Windows account.
However, according to…
I am working on some deployment PowerShell scripts that I plan to use with Bamboo for deployment. Within these PowerShell scripts, I want to run commands on a remote computer on our local network. I would like to use Invoke-Command and use the…
I have 2 desktop machines (windows 7). One is my development machine and other is my test machine. I have made a desktop application. It is connecting server using web request. I am using TLS1.2 for connection and HTTPClient (C#) has been used on…
I have created (using C#, VS2017, windows10 latest updates) a simple Windows Form application and included a webBrowser control redirecting to a page.
I am having the Windows Security pop up asking for password and I want to disable it :
I want…
I need to refresh an excel using Powershell script (so that I can later schedule it in task scheduler). This refresh requires credentials to be entered. Does anyone know of a way to pass these credentials from the powershell script? The excel hangs…