I've been developing an ASP.NET site on an older machine running XP home. I recently got a new Win 7 PC and moved all my project files across. When I try and run the project, I get this error message: "Failed to decrypt using provider 'MyRsaProtectedConfigurationProvider'. Error message from the [...] read more
I need to set permissions on logs folder for created IIS Application Pool. The code to set permissions: <CreateFolder Directory="SiteLogsFolder"> <util:PermissionEx User="Everyone" Read="yes" GenericRead="yes"/> <util:PermissionEx User="[IisSiteUser]" GenericRead="yes" GenericWrite="yes" GenericExecute="yes" Delete="yes" DeleteChild="yes"/> </CreateFolder> <CustomAction Id="SetIis6SiteUser" Property="IisSiteUser" Value="NT AUTHORITY\NetworkService"/> <CustomAction Id="SetIis7SiteUser" Property="IisSiteUser" Value="IIS AppPool\[SITE_APP_POOL]"/> <InstallExecuteSequence> <Custom Action="SetIis7SiteUser" Before="InstallInitialize">IISMAJORVERSION>="#7"</Custom> <Custom Action="SetIis6SiteUser" Before="InstallInitialize">IISMAJORVERSION="#6"</Custom> </InstallExecuteSequence> [...] read more
I have an installation build with WiX 3.0. It currently creates some folders and modifies the folder permissions. However, it will not install on a Spanish OS. That is now a problem since we have to support Spanish OS's. So... I am trying to do this in a way that [...] read more
To enable my application to startup with admin rights at user login, I use a task in task scheduler. And it works fine. Mostly. Now I've received bug reports saying that this fails: rootFolder->RegisterTaskDefinition( _bstr_t(name.toWideCharPointer()), task, TASK_CREATE_OR_UPDATE, _variant_t(L"Builtin\\Administrators"), _variant_t(), TASK_LOGON_GROUP, _variant_t(L""), ®isteredTask) -> 0x80070534 0x80070534 seems to mean "No mapping [...] read more
Good Afternoon, I am trying to run this script remotely and I keep receiving the following error: Register-ScheduledTask : No mapping between account names and security IDs was done. (42,4):UserId: At C:\TempSQL\FullSQLBackupInstaller.ps1:39 char:13 + Register-ScheduledTask -TaskName 'crebackup' -InputObject ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (PS_ScheduledTask:Root/Microsoft/. ..S_ScheduledTask) [Register-ScheduledTask], CimException + [...] read more
I am trying to setup a GPO to deploy a PowerShell script which enabled WinRM with HTTPS on a self-signed SSL certificate. I know that there are two ways to execute a PowerShell script at computer startup: 1. create an immediate task which starts a program with path: C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe, arguments: [...] read more
I've recently set up a new Windows 2012 R2 Enterprise SHA2 issuing CA to replace an old Windows 2008 R2 SHA1 issuing CA. This also has Web Enrollment installed as is accessed by the public so all DNS records in place to contact this over web along with trusted certificates. [...] read more
I cannot start SQL Server 2005 transactional replication after I promoted my 2008 Server to a DC. > A required privilege is not held by the client. This site suggests that I need to change the SQL Server service from my domain account to a local account then back again [...] read more
I am trying to run notepad on boot following this tutorial I get an error at the end (0x80070534) which pretty much translates to "No Mapping between account names and security ids was done" I looked up many threads, some suggested changing the userId to "S-1-5-32-544", but I had no [...] read more
I'm creating image in azure and have a schedule task which has to run on any user login. 1. Image created in sperate environment where domain does not exist 2. After VM creation it will join domain 3. We want to allow users in particular group like FutureDomain\Domain Users to [...] read more
I'm writing a Wix Toolset installer to install an Angular + asp.net core application in IIS on Windows Server 2016. I create a new Website and a new Application Pool. I want to grant full permission to the Application Pool identity on the newly created website folder path. I followed [...] read more
I search for a long time and I never find a solution.... Here is my powershell code : $TaskName = "Backup" $TaskDescription = "Scheduled Task for Backup." $GeneralServiceAccount = "SRVBK$" ## It's a gMSA https://technet.microsoft.com/en-us/library/hh831782.aspx $GeneralServiceAccountLogonType = "Password" $GeneralRunLevel = "Highest" $ActionScriptPath = "C:\Server\Backup\$TaskName.ps1" $ActionTaskProgramStart = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" $ActionTaskProgramStartArgument = "-NoProfile [...] read more