Computer Science

Computer Science

In this section, we explore the world of programming, algorithms, networks, and infrastructure

ProgrammingAlgorithmsComputer NetworksTechnologyInfrastructureSoftware EngineeringHardware Engineering

Related Categories

Featured Articles

PowerShell Remoting: Complete Guide to Remote Management

PowerShell Remoting, introduced in v2 and enhanced in v3, is a core technology for remote administration in Windows environments. It enables secure execution of commands on remote machines using the WS-MAN protocol via WinRM. Unlike legacy -ComputerName parameters that relied on DCOM/RPC, true Remoting works with any cmdlet, serializing objects into XML for transmission and deserializing them on receipt. Understanding concepts such as endpoints, listeners, authentication, sessions, and implicit remoting is essential for leveraging this technology effectively.

/article/powershell-remoting-complete-guide-to-remote-management

PowerShell Jobs: Asynchronous Execution, WMI, and Scheduling

Jobs in PowerShell are extension points that allow tasks to run asynchronously in the background. Introduced in v3, jobs fall into three main categories: Remoting-based jobs, WMI/CIM jobs, and Scheduled jobs. Each type has unique mechanics but shares the same purpose—executing units of work without blocking the interactive session. Administrators can start jobs, monitor their status, retrieve results, and manage failures, making jobs a powerful tool for automation and remote management.

/article/powershell-jobs-asynchronous-execution-wmi-and-scheduling

PowerShell Credentials: Secure Authentication and Best Practices

Many PowerShell cmdlets support the -Credential parameter, enabling commands to run under alternative accounts. This feature enforces the principle of least privilege: perform tasks with minimal rights, and elevate only when necessary. Credentials can be provided as strings or PSCredential objects, with passwords stored securely as encrypted strings. PowerShell v3 introduced enhancements such as custom messages in credential prompts. Administrators can create reusable credential objects, manage them across sessions, and integrate them into scripts. While techniques exist to persist credentials, they carry significant security risks and should be used cautiously.

/article/powershell-credentials-secure-authentication-and-best-practices

Regular Expressions in PowerShell: Patterns, Operators, and Applications

Regular expressions (Regex) are a powerful language for describing data patterns. PowerShell integrates industry-standard regex syntax through the .NET library, enabling pattern matching, searching, and replacing across text and structured data. From validating emails and IP addresses to parsing logs and file paths, regex provides flexible tools for administrators. PowerShell supports regex through operators like -match, cmdlets such as Select-String, and constructs like Switch -regex, as well as the dedicated [regex] object for advanced operations.

/article/regular-expressions-in-powershell-patterns-operators-and-applications

Working with HTML and XML Data in PowerShell

PowerShell provides robust capabilities for handling structured data formats such as HTML and XML. HTML is useful for generating professional-looking reports, while XML is widely used for configuration, serialization, and data persistence. PowerShell cmdlets like Invoke-WebRequest, ConvertTo-HTML, Export-Clixml, and Select-XML make it easy to retrieve, parse, generate, and query these formats. By mastering these tools, administrators can automate reporting, preserve complex data structures, and integrate PowerShell with web and enterprise systems.

/article/working-with-html-and-xml-data-in-powershell

PSDrives and PSProviders in PowerShell: Navigating Beyond the File System

Summary: In PowerShell, modules and snap-ins don’t just add cmdlets—they often introduce PSProviders, adapters that expose hierarchical data stores (such as the Registry, IIS, Active Directory, or SQL Server) as drive‑like structures. This allows administrators to navigate and manage diverse systems using familiar file‑system commands. Alongside providers, PSDrives represent active connections to these data stores. Together, they create a unified, intuitive way to work with complex environments using consistent PowerShell syntax.

/article/psdrives-and-psproviders-in-powershell-navigating-beyond-the-file-system

Variables, Arrays, Hash Tables, and Scriptblocks in PowerShell

Variables are the foundation of data handling in PowerShell. They store values—numbers, strings, objects, and more—allowing scripts to reuse information without recalculating it. Building on variables, PowerShell provides richer structures such as arrays, hash tables, and scriptblocks, enabling powerful automation, data manipulation, and dynamic execution. Understanding these constructs is essential for writing clean, efficient, and scalable PowerShell scripts

/article/variables-arrays-hash-tables-and-scriptblocks-in-powershell

PowerShell Security: Goals, Mechanisms, and Script Execution Policies

PowerShell Security: Goals, Mechanisms, and Script Execution Policies

/article/powershell-security-goals-mechanisms-and-script-execution-policies

Advanced PowerShell Tips and Tricks: Expert Techniques

PowerShell includes a set of concise, high‑impact features that experienced users rely on to write cleaner, faster, and more maintainable scripts. These expert‑level techniques—such as splatting, default parameter values, subexpressions, parenthetical execution, and custom formatting—don’t change what PowerShell does, but dramatically improve how efficiently you can work. This chapter highlights the most valuable “pro” tricks that streamline automation and reduce repetitive code.

/article/advanced-powershell-tips-and-tricks-expert-techniques

Routing in Express.js: A Complete Guide to Application Endpoints

Routing in Express.js defines how an application responds to incoming HTTP requests at specific paths (URIs) and methods. This flexible system allows developers to create simple routes, complex patterns, dynamic parameters, multiple handlers, and modular route structures using Router. This article explains all essential routing concepts—from basic paths to regex routes, route parameters, middleware-style handlers, app.route(), and express.Router.

/article/routing-in-expressjs-a-complete-guide-to-application-endpoints

Routing در Express.js تعیین می‌کند که برنامه چگونه به درخواست‌های

Routing در Express.js تعیین می‌کند که برنامه چگونه به درخواست‌های HTTP در مسیرهای مختلف پاسخ دهد. این سیستم قدرتمند و انعطاف‌پذیر امکان تعریف مسیرهای ساده، الگوهای پیچیده، پارامترهای پویا، چندین هندلر، و ساختارهای ماژولار مبتنی بر Router را فراهم می‌کند. این مقاله تمام مفاهیم کلیدی Routing—از مسیرهای ساده تا Regex، پارامترها، middleware، app.route() و express.Router—را به‌صورت کامل و کاربردی توضیح می‌دهد.

/article/routing-in-expressjs-a-complete-guide-to-application-endpoints-fa

Writing Middleware in Express.js: A Complete Guide for Developers

Middleware is one of the core architectural concepts in Express.js. . Middleware functions have access to the request object (req), the response object (res), and the next() function, which controls the flow of the request–response cycle. Middleware can modify requests, send responses, validate data, log activity, handle errors, or pass control to the next function in the stack. This article explains everything you need to know about writing middleware—from simple examples to async validation, error handling, and configurable middleware.

/article/writing-middleware-in-expressjs-a-complete-guide-for-developers
Computer Science | Dr. Shahin Siami