powershell
13 TopicsAzure VM Agent Status not ready
I have created a red hat openshift private cluster but the VMS are stuck in the state of "agent status not ready." I have followed these troubleshooting steps: Linux Virtual Machine Agent Status "Not Ready" - Microsoft Community Hub However, all of them seem to point to trying to check and see what is on the VM itself. I am unable to do this because I can't SSH into the machine. Has anyone else ran into this issue and been able to resolve it? I am deploying it via CLI as I was not able to do it via GUI for some reason. This is my script: #az login az account set --name "accountnamehidden" #az provider register -n Microsoft.RedHatOpenShift --wait #az provider register -n Microsoft.Compute --wait #az provider register -n Microsoft.Storage --wait #az provider register -n Microsoft.Authorization --wait $LOCATION= "eastus" # the location of your cluster $RESOURCEGROUP= "sample-rg" # the name of the resource group where you want to create your cluster $CLUSTER= "K8sDev1test" # the name of your cluster $arovnet= "sample-vnet" $mastersubnet = "k8sDev1-master-ue-snet" $workersubnet = "k8sDev1-worker-ue-snet" az aro create --resource-group "samplerg" --vnet-resource-group "sample-vnet-rg" --name $CLUSTER --vnet $arovnet --master-subnet "k8sDev1-master-ue-snet" --worker-subnet "k8sDev1-worker-ue-snet" --apiserver-visibility Private --ingress-visibility Private --fips true --outbound-type UserDefinedRouting --client-id hidden --client-secret hiddenDisjoin and join windows machines remotely
Hello there, I have a task to disjoin hunderds of windows machines from domain A and to join them to domain B. i prepared a powershel script it disjoining the machine from domain A but fails to restart the machine and abort i am pasting the script below and i hope that someone can help. the localcredential Variable is already a local admin and member of administrators the SourceCredential variable is a domain amdin: $SrcDomain = "AA" $DstDomain = "BB" $DstDomainIP = "IP" $SrcPassword = ConvertTo-SecureString "XXX" -AsPlainText -Force $SrcCredential = New-Object System.Management.Automation.PSCredential ("$SrcDomain\administrator", $SrcPassword) $DstPassword = ConvertTo-SecureString "XX" -AsPlainText -Force $DstCredential = New-Object System.Management.Automation.PSCredential ("$DstDomain\administrator", $DstPassword) $localpassword = ConvertTo-SecureString "XX" -AsPlainText -Force $localcredential = New-Object System.Management.Automation.PSCredential ("lab", $localpassword) $logFile = "C:\DD\Output.log" $timestamp = (Get-Date).toString("yyyy/MM/dd HH:mm:ss") C:\TEMP\PSEXEC\PsExec.exe \\$log -h -s powershell.exe "Enable-PSRemoting -Force" start-sleep -s 15 C:\TEMP\PSEXEC\PsExec.exe \\$log -h -s powershell.exe "Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name LocalAccountTokenFilterPolicy -Value 1 -Type DWord" Remove-Computer -ComputerName $log -LocalCredential $localcredential -UnjoinDomainCredential $SrcCredential -WorkgroupName 'Workgroup' -Verbose -PassThru -Restart -Force Start-Sleep -s 120 Add-Computer -ComputerName $log -LocalCredential $localcredential -DomainName $DstDomain -Credential $DstCredential -PassThru -Verbose -Restart -Force ------------------------------ Below is the error: Remove-Computer : Failed to restart the computer 10.30.233.158 with the following error message: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). At line:1 char:1 + Remove-Computer -ComputerName $log -LocalCredential $localcredential ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (10.30.233.158:String) [Remove-Computer], InvalidOperationException + FullyQualifiedErrorId : RestartcomputerFailed,Microsoft.PowerShell.Commands.RemoveComputerCommand582Views0likes2Commentswhy friendlyName is empty in get-disk or get-physicalDisk command
I made a storage driver with storport, I am confident that the correct data is returned in the scsi command, but there is no friendlyName in get-Disk(disk type is sas), and get-physicalDisk command also show incorect friendlyName(friendlyName is ‘Generic Physicall Disk’) by contrast, 'disk driver' in "device manager" showed coreect disk name I can't figure out what problem is, and how to fix it.263Views0likes0CommentsDomain connectivity issues
Hello , I have a User who is attempting to log in into Windows,the User account is Active in Active directory (AD) ,He Has successfully logged into the VPN, but He encountered an error Message indicating He is not connected to the available Domain and need to connect to their organization tobe added to the domain. Could anyone offer assistance with this issue ? Thank youWindows Server 2022 - PowerShell ISE
Hello, I use a Windows Server 2019- Hyper-V VM to develop PowerShell scripts. A while ago I created a new VM with Windows Server 2022 for the same goal. I use PowerShell ISE for development. And in Windows Server 2022 there is a very annoying bug in the Search function. When I press CTRL-F and type a keyword to find and press ENTER, nothing happens. I have to use the mouse to click "Find Next" before ISE will start searching. This function is and was working perfectly in Windows Server 2019 ISE version. Please fix this bug because I do not want to downgrade my dev machine to Windows Server 2019. Also I do not like using VS Code because it is too slow to work with. Thx Stefan1.5KViews0likes0CommentsHow Do I Reset Peak Usage for FSRM Quotas in PowerShell on Server 2016?
How do I reset the peak usage in PowerShell like I can in the GUI? What is that peak usage for anyway? Seems like the system notifies on the peak usage as opposed to the actual usage. So, If a user exceeds the first notification threshold, removes data, then exceeds the first notification threshold again, no notification email is sent the second time. I need a email sent every time a user crosses over a notification threshold. Thanks.890Views0likes0Comments