Posts

Showing posts with the label Windows Server

Printer Showing Offline Suddenly But Printer Shows Ready Status on Webpage

Windows Servers automatically enables SNMP support for networked printers, and if it can’t get a response to a SNMP message then it assumes the printer is offline. SNMP stands for Simple Network Management Protocol and is a way of getting information from network devices (such as routers, servers and printers), mainly for the purposes of finding out if there are any problems with the devices. A number of networked printers implement SNMP, and will respond to SNMP queries with information, but some don’t.and will never get a response to a SNMP message. Thankfully there is a simple way to fix this – and it just involves telling Vista not to try and communicate with the printer via SNMP. Simply right-click on the printer in the Printers window, choose the Ports tab, and select Configure Port . At the bottom you will see a checkbox saying something like SNMP Status Enable . Untick that, and the printer should start showing as online again.

Virtual Machine Movement issue with access denied problem

Virtual Machine Movement: Sometime we migrate the VM from one physical host to another physical host by exporting and importing.However,sometimes we face "access denied" problem while try to start VM. Please run the below powershell COMMAND: icacls "E:\Hyper-V\Virtual Hard Disks\Harddisk.vhdx" /grant "NT VIRTUAL MACHINE\B4E6983D-1A09-4DE2-B7A6-DD00132EE065":(F) For details : https://charbelnemnom.com/2014/08/an-attempt-to-initialize-vm-saved-state-failed-could-not-create-or-access-saved-state-file-hyperv-scvmm/

Unable to Delete Folder and Could not find this item

Sometime you had this same problem using Server 2012 Std  or Server 2012 R2 . Iyou tried various options of taking ownership of the parent folder because the Security properties of the folder. you tried  trying to delete were blank, using CMD and Dir /x etc. you even tried sharing the parent folder and then delete it. None of them worked. When you tried Dir /x Server 2012 or 2012 R2 doesn't show the 8 character filename with the ~1. you tried typing it in yourself, but that didn't work either. you then found that there was a space at the end of the folder name. you then tried all the CMD options again using a space, still no luck. This solution should help  you out: Open CMD and then type: rd /s "\\?\D:\bad\folder\path " example: rd /s "\\?\D:\Sharedata\folder1\folder2 " - note the space after folder2 as per the space in the folder name. Obviously D: is the drive that has the folder on it. This worked for me

Power shell script for getting users information from Active Directory

Get-ADUser -Filter * -Properties sn, DisplayName, mail, Title, Mobile| where {$_.enabled -eq "True"} |select sn, DisplayName, mail, Title, Mobile | Export-CSV "C\Mobile_Information.csv"

Power Shell Script For Creating Bulk Users in Active Directory

Power Shell Script for creating bulk users from CSV in Active Directory.All the Column name should be available such as SamAccountName,DisplayName,GivenName,Surname and more. ᐅ Import-Csv .\Users.csv | foreach-object { $userprinicpalname = $_.SamAccountName + "@ contoso.com "; New-ADOrganizationalUnit -Name Hardware -Path "ou=IT,dc=dc1,dc=com";New-ADUser -SamAccountName $_.SamAccountName -UserPrincipalName $userprinicpalname -Name $_.name -DisplayName $_.name -GivenName $_.cn -SurName $_.sn -Department $_.Department -Path $_.path; Set-ADAccountPassword -identity $_.SamAccountName -NewPassword (ConvertTo-SecureString -AsPlainText $_.Password -Force) -Reset ; Enable-ADAccount -identity $_.SamAccountName; Set-ADUser -Identity $_.SamAccountName -ChangePasswordAtLogon $true}

User Logon Information Script in Active Directory

If you have more than one DC please run the following script in each DC for getting user logon information. ᐅGet-ADUser -Filter * -Properties * | Select Displayname,sn,@{N='LastLogon'; E={[DateTime]::FromFileTime($_.LastLogon)}} | Export-csv c:\userlastlogoninfo.csv

Powershell script for group membership list of AD users

Please run  the following shell script as administrator in AD Power Shell command line  for individual user . ᐖ Get-ADPrincipalGroupMembership username | Select name | Export-Csv c:\group.csv

WINDOWS SERVER 2012 “THE USER PROFILE SERVICE SERVICE FAILED THE LOGON. USER PROFILE CANNOT BE LOADED.” WHEN SIGINING INTO A SERVER THROUGH RDP”.

Image
Scenario: When trying to log into a 2012, 2012 R2 server, you receive the following error: Error: This info is displayed in the application log (Event 1509). “Windows cannot copy file \\?\C:\Users\Default\AppData\Local\Microsoft\Exchange Server\v15\Configuration14720_100.sqm to location \\?\C:\Users\<username>\AppData\Local\Microsoft\Exchange Server\v15\Configuration14720_100.sqm. This error may be caused by network problems or insufficient security rights.” Solution:  There are two Solution which will be fixer for the above problem. 1. Go to the permissions of the source file and make sure you select the permissions to be inherited from advanced security settings: File Path: C:\Users\<username>\AppData\Local\Microsoft\Exchange Server\v15\Configuration14720_100.sqm. 2. Delete the file.