{
	"id": "03e37964-42a5-4e8a-a8d2-a334099c7c79",
	"created_at": "2026-04-06T00:12:51.479671Z",
	"updated_at": "2026-04-10T03:21:58.841929Z",
	"deleted_at": null,
	"sha1_hash": "ebed67caa87b4685604c55714b491454deb6f5c4",
	"title": "pubprn",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 42113,
	"plain_text": "pubprn\r\nBy robinharwood\r\nArchived: 2026-04-05 18:10:26 UTC\r\nPublishes a printer to the Active Directory Domain Services. This command is a Visual Basic script located in the\r\n%WINdir%\\System32\\printing_Admin_Scripts\\\u003clanguage\u003e directory. To use this command at a command prompt,\r\ntype cscript followed by the full path to the pubprn file, or change directories to the appropriate folder. For\r\nexample: cscript %WINdir%\\System32\\printing_Admin_Scripts\\en-US\\pubprn .\r\nSyntax\r\ncscript pubprn {\u003cservername\u003e | \u003cUNCprinterpath\u003e} LDAP://CN=\u003ccontainer\u003e,DC=\u003ccontainer\u003e\r\nParameters\r\nParameter Description\r\n\u003cservername\u003e\r\nSpecifies the name of the Windows server that hosts the printer that you\r\nwant to publish. If you don't specify a computer, the local computer is used.\r\n\u003cUNCprinterpath\u003e\r\nThe Universal Naming Convention (UNC) path to the shared printer that\r\nyou want to publish.\r\nLDAP://CN=\u003cContainer\u003e,DC=\r\n\u003cContainer\u003e\r\nSpecifies the path to the container in Active Directory Domain Services\r\nwhere you want to publish the printer.\r\n/? Displays help at the command prompt.\r\nIf the information that you supply contains spaces, use quotation marks around the text (for example,\r\n\"Computer Name\").\r\nExamples\r\nTo publish all printers on the \\Server1 computer to the MyContainer container in the MyDomain.company.com\r\ndomain, type:\r\ncscript pubprn Server1 LDAP://CN=MyContainer,DC=MyDomain,DC=company,DC=Com\r\nTo publish the Laserprinter1 printer on the \\\\Server1 server to the MyContainer container in the\r\nMyDomain.company.com domain, type:\r\nhttps://docs.microsoft.com/en-us/windows-server/administration/windows-commands/pubprn\r\nPage 1 of 2\n\ncscript pubprn \\\\Server1\\Laserprinter1 LDAP://CN=MyContainer,DC=MyDomain,DC=company,DC=Com\r\nCommand-Line Syntax Key\r\nPrint Command Reference\r\nSource: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/pubprn\r\nhttps://docs.microsoft.com/en-us/windows-server/administration/windows-commands/pubprn\r\nPage 2 of 2",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"references": [
		"https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/pubprn"
	],
	"report_names": [
		"pubprn"
	],
	"threat_actors": [],
	"ts_created_at": 1775434371,
	"ts_updated_at": 1775791318,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/ebed67caa87b4685604c55714b491454deb6f5c4.pdf",
		"text": "https://archive.orkl.eu/ebed67caa87b4685604c55714b491454deb6f5c4.txt",
		"img": "https://archive.orkl.eu/ebed67caa87b4685604c55714b491454deb6f5c4.jpg"
	}
}